question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How-To-NPM Publish Again

See original GitHub issue

Challenge 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)

screen shot 2016-05-22 at 9 38 29 pm screen shot 2016-05-22 at 9 38 32 pm

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
sudoVladcommented, Jun 18, 2016

This worked for me source : https://github.com/npm/how-to-npm/issues/25 { It go resolved!!!

  1. Switch to Login module (by typing “how-to-npm” on command line)
  2. Type “npm adduser” to login
  3. Type “npm whoami” to confirm if logged in
  4. Switch back to the package at which you are getting error(my case it was Publish Again)
  5. Type “npm publish”
  6. Done }
5reactions
davisec52commented, Jul 5, 2016

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm-publish | npm Docs
By default npm will publish to the public registry. This can be overridden by specifying a different default registry or using a scope...
Read more >
How to Publish an Updated Version of an npm Package
The “Standard” Release Process · 1. Safety Checks · 2. Prepare the Release · 3. Update the Changelog · 4. Update the Version...
Read more >
Is there a workaround for `npm publish -f` - Stack Overflow
Once a package is unpublished, it cannot be republished. If you've unpublished a package by mistake, we'd recommend publishing again under a different...
Read more >
How to publish packages to npm (the way the industry does ...
It's not simple to publish and update packages to npm according to industry standards. ... Try the publish command again.
Read more >
How to publish a npm package in four steps
Run npm init inside your git directory and follow the prompts. If you don't know what to put in a field, just leave...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found