How-To-NPM Publish Again
See original GitHub issueChallenge Manage Packages with NPM has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
.
Please describe how to reproduce this issue, and include links to screenshots if possible.
I cannot publish my package a second time in the Publish Again
section of how-to-npm on cloud9. It throws an error and tells me that part of the errors involve me adding a user to npm using the adduser
command.
I’ve tried using npm adduser
and I’ve tried going through the tutorial a second time, but every time it get to the Publish Again
section it keeps throwing the same error. I’ve read through several instances but if I try their solutions, it still throws the same error. I’ve enclosed the code that I see and two screenshots.
cupofjoey:~/workspace/secondtry $ npm publish npm ERR! Linux 4.2.0-c9 npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.4.3/bin/node" "/home/ubuntu/.nvm/versions/node/v4.4.3/bin/npm" "publish" npm ERR! node v4.4.3 npm ERR! npm v3.9.2 npm ERR! code ENEEDAUTH
npm ERR! need auth auth required for publishing npm ERR! need auth You need to authorize this machine using
npm adduser``
npm ERR! Please include the following file with any support request: npm ERR! /home/ubuntu/workspace/secondtry/npm-debug.log
cupofjoey:~/workspace/secondtry $ how-to-npm verify module.js:327 throw err; ^
Error: Cannot find module '/home/ubuntu/.config/how-to-npm/registry/@cupofjoey7/secondtry/body.json' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.exports.verify (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/how-to-npm/problems/10-publish-again.js:33:14) at Shop.verify (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/how-to-npm/node_modules/adventure/index.js:157:15) at Shop.execute (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/how-to-npm/node_modules/adventure/index.js:76:14) at Shop.shop.execute (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/how-to-npm/index.js:37:45) at Object.<anonymous> (/home/ubuntu/.nvm/versions/node/v4.4.3/lib/node_modules/how-to-npm/index.js:86:8) at Module._compile (module.js:409:26)
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (7 by maintainers)
Top GitHub Comments
This worked for me source : https://github.com/npm/how-to-npm/issues/25 { It go resolved!!!
Follow up. I resolved the issue in my case by running how-to-npm over and renaming my practice project. Apparently, the original name was too close to a package already published.