我刚开始学习node.js,并且我已经安装了node.js和npm模块管理器。使用Windows 7操作系统npm install不工作
C:\Users\username\Desktop\nodetest>npm install
npm WARN package.json [email protected] No README.md file found!
npm http GET https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/path
npm http GET https://registry.npmjs.org/path
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/path
npm http GET https://registry.npmjs.org/mongoose
npm ERR! Error: connect ETIMEDOUT
npm ERR! at errnoException (net.js:863:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:854:19)
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! <[email protected]>
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "D:\\Program Files\\nodejs\\\\node.exe" "D:\\Program Files\\no
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\username\Desktop\nodetest
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\username\Desktop\nodetest\npm-debug.log
npm ERR! not ok code 0
荫: 我创建了一个文件的package.json,并从根目录IAM试图执行NPM install命令,而不是创建文件夹npm_modules它抛出的错误是这样的。
任何想法?
感谢, SRINIVAS
它看起来像你的连接'registry.npmjs.org'是无论出于何种原因超时。 – robertklep 2013-03-21 06:07:04
你是在代理之后吗?如果是,你需要配置npm在代理 – 2013-03-21 06:21:52
后面运行是的。你能告诉我如何配置 – Srinivas 2013-03-21 06:23:17