问题如下:

npm ERR! Windows_NT 10.0.10586
npm ERR! argv "D:\\Program\\nodejs\\node.exe" "D:\\Program\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "gulp"
npm ERR! node v4.4.0
npm ERR! npm  v2.14.20
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\zy109\npm-debug.log

解决方法:

> npm config delete proxy
> npm -g install

参考:
1. npm更新出错的解决方法
2. npm not working - “read ECONNRESET”

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐