Commit 77c2400a authored by Caleb Williamson's avatar Caleb Williamson Committed by Suzanne Selhorn

Add warning to docs regarding NPM publish bug

parent 480aed65
......@@ -181,6 +181,9 @@ Add a corresponding section to your `.npmrc` file:
## Uploading packages
DANGER: **Warning:**
Due to a [bug in NPM](https://github.com/npm/cli/issues/1994), version `7.x` and later do not respect the `publishConfig` entry in the `package.json` file. To publish, you must use an earlier version of NPM, or temporarily set your `.npmrc` scope to `@foo:registry=https://gitlab.example.com/api/v4/projects/<project_id>/packages/npm`.
Before you can upload a package, you need to specify the registry
for NPM. To do this, add the following section to the bottom of `package.json`:
......
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