generator-angular2-library icon indicating copy to clipboard operation
generator-angular2-library copied to clipboard

How to change the name of the module to avoid this error

Open rahulrsingh09 opened this issue 7 years ago • 2 comments

It gives me this error

rahul@Rahul-PC:~/Angular/test-module$ npm publish dist
npm ERR! publish Failed PUT 403
npm ERR! Linux 4.10.0-35-generic
npm ERR! argv "/home/rahul/.nvm/versions/node/v7.9.0/bin/node" "/home/rahul/.nvm/versions/node/v7.9.0/bin/npm" "publish" "dist"
npm ERR! node v7.9.0
npm ERR! npm  v4.2.0
npm ERR! code E403

npm ERR! You do not have permission to publish "test-module". Are you logged in as the correct user? : test-module
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /home/rahul/.npm/_logs/2017-10-08T16_17_47_592Z-debug.log

I did the npm login too but when check the npm owner it shows a different name why ? how to publish and change the owner

I tried changing the name in package.json but is dosnt help

rahulrsingh09 avatar Oct 08 '17 16:10 rahulrsingh09

change to the /dist folder and type: npm publish

broweratcognitecdotcom avatar Oct 11 '17 07:10 broweratcognitecdotcom

Or increase the version of the library.