繁体   English   中英

安装Express时出错

[英]Error while installing express

安装Express时看到以下错误。

我正在使用节点0.10.17和npm 1.3.8

我试过npm install express

它看起来像版本问题。 推荐哪个版本?

npm ERR! Error: shasum check failed for C:\Users\GAURAV~1\AppData\Local\Temp\npm
-5800-RRPyptXX\1384367930969-0.5868753655813634\tmp.tgz
npm ERR! Expected: a567c2af000ad22dc8f2a653d91978ae1f5316f4
npm ERR! Actual:   4077b08504e56e904990e4cc29e248752fbf211f
npm ERR!     at C:\Program Files\nodejs\node_modules\npm\node_modules\sha\index.
js:38:8
npm ERR!     at ReadStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm
\node_modules\sha\index.js:85:7)
npm ERR!     at ReadStream.EventEmitter.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:920:16
npm ERR!     at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
npm ERR! cwd D:\Project\websocket
npm ERR! node -v v0.10.17
npm ERR! npm -v 1.3.8
npm http GET https://registry.npmjs.org/bytes/0.2.1
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/uid2/0.0.3
npm http 304 https://registry.npmjs.org/bytes/0.2.1
npm http 304 https://registry.npmjs.org/uid2/0.0.3
npm http 304 https://registry.npmjs.org/mime
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     D:\Project\websocket\npm-debug.log
npm ERR! not ok code 0

有什么办法吗?

上周和今天,npmjs.org网站一直存在可靠性问题。 正如Jeremy所说,这可能只是npm无法正确下载快递包。 请稍等片刻,使其重新启动并运行,然后重试。

听起来像是npm问题,请尝试使用镜子:

npm [command] --registry http://npm.nodejs.org.au:5984/registry/_design/app/_rewrite

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM