Tôi cố gắng để cài đặt node_module nhưng nhận được lỗi sau:không thể cài đặt node_modules
Ví dụ: NPM cài đặt grunt-preprocess
D:\grunt_pre>npm install grunt-preprocess
npm http GET https://registry.npmjs.org/grunt-preprocess
npm http GET https://registry.npmjs.org/grunt-preprocess
npm http GET https://registry.npmjs.org/grunt-preprocess
npm ERR! Error: connect ETIMEDOUT
npm ERR! at errnoException (net.js:901:11)
npm ERR! at Object.afterConnect [as oncomplete] (net.js:892: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.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "grunt-preprocess"
npm ERR! cwd D:\grunt_pre
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5
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! D:\grunt_pre\npm-debug.log
npm ERR! not ok code 0
Bạn có thể thử truy cập thông qua trình duyệt url sau https://registry.npmjs.org/grunt-preprocess hay không. Nó có trả về dữ liệu không? – Chandu
@Chandu nó có thể truy cập thông qua liên kết mặc dù tôi vẫn nhận được lỗi tương tự khi thử nghiệm. Có nghĩa là kho lưu trữ github của nó hoặc npm đang bị trục trặc. – DeanMWake