#npm #publish #angular-library
#npm #опубликовать #angular-библиотека
Вопрос:
Я пытаюсь опубликовать общедоступный пакет без доступа к npm.
Я вошел в систему через командную строку и запустил npm publish
из dist
папки. В любом случае, я всегда получаю эту ошибку:
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 amp;amp; npm run bundle-styles",
"publish": "cd ../../dist/flexing amp;amp; npm publish",
"build-publish": "npm run build amp;amp; 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": []
}