npm: `download` 发布报错
一上 npm 的小坑,关键词报错
现场
ERROR npm notice
npm notice 📦 @jswork/download@1.0.1
npm notice === Tarball Contents ===
npm notice 1.1kB LICENSE.txt
npm notice 1.1kB README.md
npm notice 3.2kB dist/index.cjs.js
npm notice 4.7kB dist/index.cjs.js.map
npm notice 212B dist/index.d.mts
npm notice 199B dist/index.d.ts
npm notice 2.8kB dist/index.esm.js
npm notice 2.1kB dist/index.esm.js.map
npm notice 817B package.json
npm notice 1.2kB src/index.ts
npm notice === Tarball Details ===
npm notice name: @jswork/download
npm notice version: 1.0.1
npm notice filename: jswork-download-1.0.1.tgz
npm notice package size: 4.7 kB
npm notice unpacked size: 17.3 kB
npm notice shasum: f6bd72e1c8146d039843b003e426e4db72613d3a
npm notice integrity: sha512-ZkEewqOKfbL1x[...]KN8T+o3YuSkgw==
npm notice total files: 10
npm notice
npm notice Publishing to https://registry.npmjs.org with tag latest and public access
npm ERR! code E400
npm ERR! 400 Bad Request - PUT https://registry.npmjs.org/@jswork%2fdownload - That word is not allowed. Please contact support at https://npmjs.com/support if you believe you received this in error.
npm ERR! A complete log of this run can be found in: /Users/aric/.npm/_logs/2024-08-09T14_24_01_239Z-debug-0.log
解决方案
- 改名
- 方案2: 联系 npm 官方 `
@jswork/download
` → 目前使用的是 `@jswork/node-down
`