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.

Publishing a module makes two attempts at publishing

See original GitHub issue

When I run npm version patch && npm publish, I get the following error

➜  sindre-playground git:(master) npm version patch && npm publish 
v0.0.9
npm ERR! publish Failed PUT 403
npm ERR! Linux 4.2.0-35-generic
npm ERR! argv "/home/jeroen/.nvm/versions/node/v5.9.0/bin/node" "/home/jeroen/.nvm/versions/node/v5.9.0/bin/npm" "publish"
npm ERR! node v5.9.0
npm ERR! npm  v3.7.3
npm ERR! code E403

npm ERR! "You cannot publish over the previously published version 0.0.9." : sindre-playground
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/jeroen/dev/fork/sindre-playground/npm-debug.log

And I have the following in my logs

Replicating skimdb, last_seq is: 980079 (100%)
PUT /sindre-playground 200 3655.418 ms - 36
PUT /sindre-playground 403 1050.818 ms - 95

The package gets published alright, but there’s a second attempt which then fails because the version already exists. Any idea on what might cause this?

I’m using local-npm version 1.5.8.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gabrielcsapocommented, May 24, 2017

🙈 sorry clicked the wrong button

1reaction
nolanlawsoncommented, May 2, 2016

I can repro

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I publish or unpublish a module as an instructor?
As an instructor, you can publish or unpublish a module in a course. Unpublished modules are invisible to students. Modules control the entire...
Read more >
Publishing module failed - OutSystems
Hi everyone! Now I'm working on developing modules inside the Service Studio. When I try to publish those modules, it failed and only...
Read more >
Publishing Private Modules - Private Registry - Terraform Cloud
Publishing a New Module · Click Registry. The Registry page appears. · Click Publish and select Module. · Select the repository containing the...
Read more >
Publish-Module (PowerShellGet) - PowerShell | Microsoft Learn
The Publish-Module cmdlet publishes a module to an online NuGet-based gallery by ... The owner adds two search tags for the module, relating...
Read more >
Publishing modules - Puppet
Exclude unnecessary files from your package, remove or ignore any symlinks your module contains, and make sure your metadata.json file contains the correct ......
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