猿问

Win7 nodejs 安装express 错误

D:\servers\nodejs>npminstallexpress-g
npmhttpGEThttps://registry.npmjs.org/express
npmhttp304https://registry.npmjs.org/express
npmhttpGEThttps://registry.npmjs.org/commander/0.6.1
npmhttpGEThttps://registry.npmjs.org/range-parser/0.0.4
npmhttpGEThttps://registry.npmjs.org/cookie/0.0.5
npmhttpGEThttps://registry.npmjs.org/fresh/0.1.0
npmhttpGEThttps://registry.npmjs.org/connect/2.7.2
npmhttpGEThttps://registry.npmjs.org/methods/0.0.1
npmhttpGEThttps://registry.npmjs.org/cookie-signature/0.0.1
npmhttpGEThttps://registry.npmjs.org/send/0.1.0
npmhttpGEThttps://registry.npmjs.org/buffer-crc32/0.1.1
npmhttpGEThttps://registry.npmjs.org/mkdirp/0.3.3
npmhttpGEThttps://registry.npmjs.org/debug
npmhttp304https://registry.npmjs.org/commander/0.6.1
npmhttp304https://registry.npmjs.org/range-parser/0.0.4
npmhttp304https://registry.npmjs.org/fresh/0.1.0
npmhttp304https://registry.npmjs.org/cookie/0.0.5
npmhttp304https://registry.npmjs.org/connect/2.7.2
npmhttp304https://registry.npmjs.org/methods/0.0.1
npmhttp304https://registry.npmjs.org/cookie-signature/0.0.1
npmhttp304https://registry.npmjs.org/send/0.1.0
npmhttp304https://registry.npmjs.org/buffer-crc32/0.1.1
npmWARNpackage.jsonmethods@0.0.1NoREADME.mdfilefound!
npmhttp304https://registry.npmjs.org/mkdirp/0.3.3
npmhttp304https://registry.npmjs.org/debug
npmhttpGEThttps://registry.npmjs.org/mime/1.2.6
npmhttpGEThttps://registry.npmjs.org/qs/0.5.1
npmhttpGEThttps://registry.npmjs.org/formidable/1.0.11
npmhttpGEThttps://registry.npmjs.org/bytes/0.1.0
npmhttpGEThttps://registry.npmjs.org/pause/0.0.1
npmhttp304https://registry.npmjs.org/mime/1.2.6
npmhttp304https://registry.npmjs.org/qs/0.5.1
npmhttp304https://registry.npmjs.org/formidable/1.0.11
npmhttp304https://registry.npmjs.org/pause/0.0.1
npmhttp304https://registry.npmjs.org/bytes/0.1.0
C:\Users\Aries\AppData\Roaming\npm\express->C:\Users\Aries\AppData\Roaming\npm
\node_modules\express\bin\express
express@3.1.0C:\Users\Aries\AppData\Roaming\npm\node_modules\express
├──methods@0.0.1
├──fresh@0.1.0
├──range-parser@0.0.4
├──cookie-signature@0.0.1
├──buffer-crc32@0.1.1
├──cookie@0.0.5
├──debug@0.7.2
├──commander@0.6.1
├──mkdirp@0.3.3
├──send@0.1.0(mime@1.2.6)
└──connect@2.7.2(pause@0.0.1,bytes@0.1.0,qs@0.5.1,formidable@1.0.11)
npmERR!Error:readECONNRESET
npmERR!aterrnoException(net.js:863:11)
npmERR!atTCP.onread(net.js:524:19)
npmERR!Ifyouneedhelp,youmayreportthislogat:
npmERR!
npmERR!oremailitto:
npmERR!
npmERR!SystemWindows_NT6.1.7601
npmERR!command"D:\\servers\\nodejs\\\\node.exe""D:\\servers\\nodejs\\node_mo
dules\\npm\\bin\\npm-cli.js""install""express""-g"
npmERR!cwdD:\servers\nodejs
npmERR!node-vv0.10.0
npmERR!npm-v1.2.14
npmERR!syscallread
npmERR!codeECONNRESET
npmERR!errnoECONNRESET
npmERR!
npmERR!Additionalloggingdetailscanbefoundin:
npmERR!D:\servers\nodejs\npm-debug.log
npmERR!notokcode0
D:\servers\nodejs>貌似不成功
然后又$gitclonegit://github.com/visionmedia/express.git--depth1
$cdexpress
$npminstall
慕丝7291255
浏览 499回答 2
2回答

RISEBY

既然用了node,就不要在windows上开发了。完全可以装个虚拟的ubuntu进行开发。不要怕麻烦,linux没接触过的话,看着复杂,其实熟悉了以后,会觉得比windows好很多。不是说windows里就不能用node。但用了ubuntu(或者mac)开发node后,你绝对就不再想用windows了
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答