>npm publish npm notice npm notice package: hexo-tool-cc@1.0.0 npm notice === Tarball Contents === npm notice 60B index.js npm notice 200B package.json npm notice === Tarball Details === npm notice name: tool npm notice version: 1.0.0 npm notice filename: tool-1.0.0.tgz npm notice package size: 330 B npm notice unpacked size: 260 B npm notice shasum: cea7ffbf9f28f81fc530d94da3891779f895ee6d npm notice integrity: sha512-3TuKOdWhhRHFI[...]WJCL9T9OUmAgg== npm notice total files: 2 npm notice npm ERR! code E403 npm ERR! 403403 Forbidden - PUT https://registry.npmjs.org/tool - You donot have permission to publish "hexo-tool-cc". Are you logged in as the correct user? npm ERR! 403In most cases, you or one of your dependencies are requesting npm ERR! 403 a package version that is forbidden by your security policy, or npm ERR! 403 on a server you donot have access to.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Program Files\nodejs\node_cache\_logs\2021-09-09T08_21_00_032Z-debug.log
1.可能需要提高版本号
2.确保登录的用户账号正确
3.名字不能和npm上已经存在的一样
4.删除npm市场的包同名的24小时后才能重新发布
1 2 3 4 5 6 7
>npm publish npm ERR! publish Failed PUT 403 npm ERR! code E403 npm ERR! hexo-tool-cc cannot be republished until 24 hours have passed. : hexo-tool-cc
npm ERR! A complete log of this run can be found in: npm ERR! C:\Program Files\nodejs\node_cache\_logs\2021-09-09T08_21_00_032Z-debug.log