为什么 npm 会给出 500 和 503 错误:“registry error parsing json"? [英] Why is npm giving 500 and 503 errors: "registry error parsing json"?
问题描述
尝试执行 npm install steroids -g
并遇到两种类型的大量错误:
Trying to do npm install steroids -g
and running into lots of errors of two types:
第一个:500
npm ERR! registry error parsing json
npm http 500 https://registry.npmjs.org/cardinal
npm ERR! registry error parsing json
npm http 500 https://registry.npmjs.org/glob
npm ERR! registry error parsing json
npm http 500 https://registry.npmjs.org/chmodr
npm ERR! registry error parsing json
npm http 500 https://registry.npmjs.org/fstream
npm ERR! registry error parsing json
当我在浏览器中访问这些网址时,我收到以下消息:
when I visit those urls in the browser I get the following message:
内部路由错误
抱歉,我们无法连接到目标服务器.
Sorry, we cannot connect to the intended server.
我们刚刚收到有关此问题的通知.我们会尽快改正尽可能.
We have just been notified of this problem. We will correct it as soon as possible.
如果您有任何问题,请随时与我们联系:support@irisouch.com
Feel free to contact us if you have any questions: support@iriscouch.com
第二:503
npm http 503 https://registry.npmjs.org/forever-agent
npm ERR! registry error parsing json
npm http 503 https://registry.npmjs.org/cheerio
npm ERR! registry error parsing json
npm http 503 https://registry.npmjs.org/request
npm ERR! registry error parsing json
npm http 503 https://registry.npmjs.org/diff
npm ERR! registry error parsing json
npm http 503 https://registry.npmjs.org/tar
当我在浏览器中访问这些网址时,我收到以下消息:
When I visit those urls in the browser I get this message:
错误 503 后端读取错误
Error 503 backend read error
后端读取错误
大师冥想:
XID:1448084160
XID: 1448084160
清漆缓存服务器
这是否意味着 npm 注册表已关闭?还是我的机器上有奇怪的行为?
Does this mean the npm registry is down? or do I have strange behavior on my machine?
运行节点 v.0.10.24 &npm v.1.3.21
Running node v.0.10.24 & npm v.1.3.21
推荐答案
尝试使用镜像,例如欧洲镜像:
Try using a mirror for example the european mirror:
npm --registry http://registry.npmjs.eu/ install karma
这篇关于为什么 npm 会给出 500 和 503 错误:“registry error parsing json"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!