Commit 80a79cbb authored by Suzanne Selhorn's avatar Suzanne Selhorn

Merge branch 'MarioSchy-master-patch-16780' into 'master'

Improved section regarding "npm ERR! 400 Bad Request"

See merge request gitlab-org/gitlab!64387
parents a1c9ac41 6c96761a
...@@ -532,12 +532,24 @@ If you get this error, ensure that: ...@@ -532,12 +532,24 @@ If you get this error, ensure that:
### `npm publish` returns `npm ERR! 400 Bad Request` ### `npm publish` returns `npm ERR! 400 Bad Request`
If you get this error, your package name may not meet the If you get this error, one of the following problems could be causing it.
#### Package name does not meet the naming convention
Your package name may not meet the
[`@scope/package-name` package naming convention](#package-naming-convention). [`@scope/package-name` package naming convention](#package-naming-convention).
Ensure the name meets the convention exactly, including the case. Ensure the name meets the convention exactly, including the case.
Then try to publish again. Then try to publish again.
#### Package already exists
Your package has already been published to another project in the same
root namespace and therefore cannot be published again using the same name.
This is also true even if the prior published package shares the same name,
but not the version.
### `npm publish` returns `npm ERR! 500 Internal Server Error - PUT` ### `npm publish` returns `npm ERR! 500 Internal Server Error - PUT`
This is a [known issue](https://gitlab.com/gitlab-org/gitlab/-/issues/238950) in GitLab This is a [known issue](https://gitlab.com/gitlab-org/gitlab/-/issues/238950) in GitLab
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment