无法发布npm包(E403:禁止)
我正试图在npm上发布一个无范围的公共包 我通过命令行登录,并从无法发布npm包(E403:禁止),npm,publish,angular-library,Npm,Publish,Angular Library,我正试图在npm上发布一个无范围的公共包 我通过命令行登录,并从dist文件夹启动了npm publish。 无论如何,我总是会遇到这样的错误: npm ERR! code E403 npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/flexing - Forbidden npm ERR! 403 In most cases, you or one of your dependencies are requesting npm
dist
文件夹启动了npm publish
。
无论如何,我总是会遇到这样的错误:
npm ERR! code E403
npm ERR! 403 403 Forbidden - PUT https://registry.npmjs.org/flexing - Forbidden
npm ERR! 403 In most cases, you or one of your dependencies are requesting
npm ERR! 403 a package version that is forbidden by your security policy
这是我的package.json
文件
{
"name": "flexing",
"version": "0.0.1",
"author": "Igino Boffa",
"peerDependencies": {
"@angular/common": "^10.1.6",
"@angular/core": "^10.1.6",
"chroma.ts": "^1.0.9",
"font-awesome": "^4.7.0",
"golden-layout": "^1.5.9",
"jquery": "^3.5.1",
"tslib": "^2.0.0"
},
"scripts": {
"build": "ng build --prod && npm run bundle-styles",
"publish": "cd ../../dist/flexing && npm publish",
"build-publish": "npm run build && npm run publish",
"bundle-styles": "scss-bundle -c scss-bundle.config.json"
},
"repository": {
"type": "git",
"url": "https://github.com/iboffa/flexing.git"
},
"devDependencies": {
"@types/jquery": "^3.5.4"
},
"description": "Angular flexible layout library",
"main": "karma.conf.js",
"license": "ISC",
"keywords": []
}