npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

npm scoped publish 403 error for "forbidden by your security policy"

Hi,
I’ve tried several times to publis my package, however, I always get 403 error.
I can’t find the reason and need help.

Thanks in advance.

The log:

0 info it worked if it ends with ok

1 verbose cli [ ‘/Users/enderson/.nvm/versions/node/v10.16.2/bin/node’,

1 verbose cli ‘/Users/enderson/.nvm/versions/node/v10.16.2/bin/npm’,

1 verbose cli ‘publish’,

1 verbose cli ‘–access=public’,

1 verbose cli ‘–verbose’ ]

2 info using npm@6.12.1

3 info using node@v10.16.2

4 verbose npm-session 0c0520c8675c4495

5 verbose publish [ ‘.’ ]

6 info lifecycle @holytiny/wxmp-polyfill@0.0.1~prepublish: @holytiny/wxmp-polyfill@0.0.1

7 info lifecycle @holytiny/wxmp-polyfill@0.0.1~prepare: @holytiny/wxmp-polyfill@0.0.1

8 info lifecycle @holytiny/wxmp-polyfill@0.0.1~prepublishOnly: @holytiny/wxmp-polyfill@0.0.1

9 info lifecycle @holytiny/wxmp-polyfill@0.0.1~prepack: @holytiny/wxmp-polyfill@0.0.1

10 info lifecycle @holytiny/wxmp-polyfill@0.0.1~postpack: @holytiny/wxmp-polyfill@0.0.1

11 notice

12 notice :package: @holytiny/wxmp-polyfill@0.0.1

13 notice === Tarball Contents ===

14 notice 432B lib/index.js

14 notice 130B lib/Storage/index.js

14 notice 98B lib/Storage/localStorage.js

14 notice 102B lib/Storage/sessionStorage.js

14 notice 502B lib/Storage/Storage.js

14 notice 982B package.json

15 notice === Tarball Details ===

16 notice name: @holytiny/wxmp-polyfill

16 notice version: 0.0.1

16 notice package size: 1.2 kB

16 notice unpacked size: 2.2 kB

16 notice shasum: 2936e68626164e5598b5aa8e0ba18ce1aac45282

16 notice integrity: sha512-km37oUHhngBeH[…]urq3764XD/e4A==

16 notice total files: 6

17 notice

18 http fetch PUT 403 https://registry.npmjs.org/@holytiny%2Fwxmp-polyfill 5357ms

19 verbose stack Error: 403 Forbidden - PUT https://registry.npmjs.org/@holytiny%2Fwxmp-polyfill - Forbidden

19 verbose stack at res.buffer.catch.then.body (/Users/enderson/.nvm/versions/node/v10.16.2/lib/node_modules/npm/node_modules/npm-registry-fetch/check-response.js:104:15)

19 verbose stack at process._tickCallback (internal/process/next_tick.js:68:7)

20 verbose statusCode 403

21 verbose pkgid @holytiny/wxmp-polyfill@0.0.1

22 verbose cwd /Users/enderson/Sites/webstorm/holytiny/wxmp-polyfill/src

23 verbose Darwin 19.0.0

24 verbose argv “/Users/enderson/.nvm/versions/node/v10.16.2/bin/node” “/Users/enderson/.nvm/versions/node/v10.16.2/bin/npm” “publish” “–access=public” “–verbose”

25 verbose node v10.16.2

26 verbose npm v6.12.1

27 error code E403

28 error 403 403 Forbidden - PUT https://registry.npmjs.org/@holytiny%2Fwxmp-polyfill - Forbidden

29 error 403 In most cases, you or one of your dependencies are requesting

29 error 403 a package version that is forbidden by your security policy.

30 verbose exit [ 1, true ]