Khi tôi đang cố gắng để cài đặt grunt
qua npm
, tôi nhận được một lỗi sau:NodeJS NPM Proxy lỗi khi cài đặt grunt
C:\Program Files\nodejs\node_modules\npm>npm install -g grunt
npm ERR! network connect ETIMEDOUT
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! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt"
npm ERR! cwd C:\Program Files\nodejs\node_modules\npm
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
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:\Program Files\nodejs\node_modules\npm\npm-debug.log
npm ERR! not ok code 0
tôi đang sử dụng doanh nghiệp cấu hình proxy, và tôi tin rằng tôi m có lỗi này vì cấu hình của nó. Tôi cần thay đổi gì để cài đặt thành công?
Chỉ là cảnh báo cho người dùng khác, đừng quên thêm phần http: //! – rory
đã làm việc cho tôi cảm ơn –