(New Machine) I installed [email protected] on my PC(64bit) and then when I input 'npm install express -g', I got 'Error: Write EIO'. How to solve it ? Thank you for some advice or suggestions.
-
npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/commander/1.2.0 npm http GET https://registry.npmjs.org/range-parser/0.0.4 npm http GET https://registry.npmjs.org/mkdirp/0.3.5 npm http GET https://registry.npmjs.org/connect/2.8.3 npm http GET https://registry.npmjs.org/fresh/0.1.0 npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1 npm http GET https://registry.npmjs.org/cookie/0.1.0 npm http GET https://registry.npmjs.org/cookie-signature/1.0.1 npm http GET https://registry.npmjs.org/send/0.1.2 npm http GET https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/commander/1.2.0 npm http GET https://registry.npmjs.org/range-parser/0.0.4 npm http GET https://registry.npmjs.org/mkdirp/0.3.5 npm http GET https://registry.npmjs.org/connect/2.8.3 npm http GET https://registry.npmjs.org/fresh/0.1.0 npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1 npm http GET https://registry.npmjs.org/cookie/0.1.0 npm http GET https://registry.npmjs.org/cookie-signature/1.0.1 npm http GET https://registry.npmjs.org/send/0.1.2 npm http GET https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/commander/1.2.0 npm http GET https://registry.npmjs.org/mkdirp/0.3.5 npm http GET https://registry.npmjs.org/range-parser/0.0.4 npm http GET https://registry.npmjs.org/fresh/0.1.0 npm http GET https://registry.npmjs.org/connect/2.8.3 npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1 npm http GET https://registry.npmjs.org/cookie/0.1.0 npm http GET https://registry.npmjs.org/cookie-signature/1.0.1 npm http GET https://registry.npmjs.org/send/0.1.2 npm http GET https://registry.npmjs.org/methods/0.0.1 npm http GET https://registry.npmjs.org/debug npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No readme data. npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No repository field. npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/bytes/0.2.0 npm http GET https://registry.npmjs.org/pause/0.0.1 npm http GET https://registry.npmjs.org/qs/0.6.5 npm http GET https://registry.npmjs.org/formidable/1.0.14 npm http GET https://registry.npmjs.org/uid2/0.0.2 npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/bytes/0.2.0 npm http GET https://registry.npmjs.org/pause/0.0.1 npm http GET https://registry.npmjs.org/qs/0.6.5 npm http GET https://registry.npmjs.org/formidable/1.0.14 npm http GET https://registry.npmjs.org/uid2/0.0.2 npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/bytes/0.2.0 npm http GET https://registry.npmjs.org/pause/0.0.1 npm http GET https://registry.npmjs.org/qs/0.6.5 npm http GET https://registry.npmjs.org/formidable/1.0.14 npm http GET https://registry.npmjs.org/uid2/0.0.2 npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No readme data. npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No repository field. C:\Users\galeno\AppData\Roaming\npm\express -> C:\Users\galeno\AppData\Roaming \npm\node_modules\express\bin\express npm ERR! Error: write EIO npm ERR! at errnoException (net.js:901:11) npm ERR! at Object.afterWrite (net.js:718: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! <> npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\Installations\\nodejs\\\\node.exe" "C:\\Installations\\nod ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "-g" npm ERR! cwd C:\Users\galeno\gitrepo npm ERR! node -v v0.10.12 npm ERR! npm -v 1.2.32 npm ERR! syscall write npm ERR! code EIO npm ERR! errno EIO npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\galeno\gitrepo\npm-debug.log npm ERR! not ok code 0
-
Answer:
I have just been playing with Unicode support in Windows command prompt, using the code-page 65001 I can't get npm to install, giving me the above error. Changing the code-page to 850 chcp850chcp 850 and running the exact same npm command it then works fine. Thus your problem could very well be related to the encoding your environment is in.
Per Lauge Buresø Holst at Quora Visit the source
Related Q & A:
- When I join any chat room why I get an error?Best solution by Yahoo! Answers
- How do I set my e-mail to alert me when I get a new message?Best solution by Yahoo! Answers
- How can I get an audio alert when I get a new e-mail?Best solution by Yahoo! Answers
- How do I get stationary when I write an e-mail?Best solution by email.about.com
- How can I lower my ping when I play games online on PC?Best solution by tomshardware.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.