Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Unable to publish package - npm ERR! registry error parsing json #377

Open
cstro opened this issue Jul 30, 2018 · 9 comments
Open

Unable to publish package - npm ERR! registry error parsing json #377

cstro opened this issue Jul 30, 2018 · 9 comments

Comments

@cstro
Copy link

cstro commented Jul 30, 2018

I'm trying to publish a private package and I keep getting the following error:

npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! publish Failed PUT 500
npm ERR! Unexpected token A in JSON at position 0
npm ERR! An error occurred

Have also experienced the same issue on a different machine and with a different user account.

  • NPM version: 6.2.0
  • Node version: v8.9.3
@winterbe
Copy link

Same problem here:

npm info attempt registry request try #1 at 16:48:36
npm http request PUT https://registry.npmjs.org/sequency
npm http 500 https://registry.npmjs.org/sequency
npm ERR! registry error parsing json
npm info retry will retry, error on last attempt: SyntaxError: Unexpected token A in JSON at position 0
npm info retry An error occurred
npm info attempt registry request try #2 at 16:48:48
npm http request PUT https://registry.npmjs.org/sequency
npm http 500 https://registry.npmjs.org/sequency
npm ERR! registry error parsing json
npm info retry will retry, error on last attempt: SyntaxError: Unexpected token A in JSON at position 0
npm info retry An error occurred
npm info attempt registry request try #3 at 16:49:49
npm http request PUT https://registry.npmjs.org/sequency
npm http 500 https://registry.npmjs.org/sequency
npm ERR! registry error parsing json
npm ERR! publish Failed PUT 500
npm ERR! Unexpected token A in JSON at position 0
npm ERR! An error occurred
npm timing npm Completed in 100645ms

Node version v8.11.1
NPM version 6.2.0

@Kalmhh
Copy link

Kalmhh commented Jul 30, 2018

I have the exact same problem, trying to publish a private package having :

npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! publish Failed PUT 500
npm ERR! Unexpected token A in JSON at position 0
npm ERR! An error occurred

Node version 9.8.0
NPM version 6.2.0

@cstro
Copy link
Author

cstro commented Jul 30, 2018

Looks like it's being investigated now https://status.npmjs.org/

@dougwilson
Copy link

When I tried (before seeing it was down), I even got the successful publish email, through of course it doesn't seem like it was successful. I hope that did not put the module into some kind of weird limbo with that version number.

@Kalmhh
Copy link

Kalmhh commented Jul 30, 2018

Just received a mail of publishing confirmation, but never seen the npm publish pass the 'registry error parsing json' ERR ...
So I don't even know if it is really published, and well published

@cstro
Copy link
Author

cstro commented Jul 30, 2018

Status page says

"Monitoring - Packages are now publishing successfully. We are continuing to monitor the registry."

I've managed to successfully publish my package now, however when I was publishing it still throws the error, just without the 500.

Edit: It's also gives me zero indication that it did publish successfully, it even re-asks me to re-enter my OTP.

@winterbe
Copy link

winterbe commented Jul 30, 2018 via email

@Kalmhh
Copy link

Kalmhh commented Aug 2, 2018

The Error is back..

@sentinel09
Copy link

I receive 500 error again while publishing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants