Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

NPM ERRPR write EIO #3858

Closed
chaohaiding opened this issue Sep 4, 2013 · 6 comments
Closed

NPM ERRPR write EIO #3858

chaohaiding opened this issue Sep 4, 2013 · 6 comments

Comments

@chaohaiding
Copy link

Does anyone have the same issue. I just suddenly get the error report as following:

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-@googlegroups.com>

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" "-g" "express"
npm ERR! cwd D:\crawlerAccessibility
npm ERR! node -v v0.10.17
npm ERR! npm -v 1.3.8
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!     D:\crawlerAccessibility\npm-debug.log
npm ERR! not ok code 0
@luk-
Copy link
Contributor

luk- commented Sep 17, 2013

It's an issue writing to your disk. What's in npm-debug.log?

@chaohaiding
Copy link
Author

@luk- Hi Luk, the npm-debug.log is too large, I just parse a few last log:

441 silly lockFile e23c45de-arty-node-modules-stream-counter tar://C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\stream-counter
2442 silly lockFile e23c45de-arty-node-modules-stream-counter tar://C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\stream-counter
2443 silly lockFile 323667b5-stream-counter-0-1-0-package-tgz tar://C:\Users\Administrator\AppData\Roaming\npm-cache\stream-counter\0.1.0\package.tgz
2444 silly lockFile 323667b5-stream-counter-0-1-0-package-tgz tar://C:\Users\Administrator\AppData\Roaming\npm-cache\stream-counter\0.1.0\package.tgz
2445 info preinstall stream-counter@0.1.0
2446 verbose readDependencies using package.json deps
2447 verbose readDependencies using package.json deps
2448 silly resolved []
2449 verbose about to build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\stream-counter
2450 info build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\stream-counter
2451 verbose linkStuff [ true,
2451 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules',
2451 verbose linkStuff   false,
2451 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\express\\node_modules\\connect\\node_modules\\multiparty\\node_modules' ]
2452 info linkStuff stream-counter@0.1.0
2453 verbose linkBins stream-counter@0.1.0
2454 verbose linkMans stream-counter@0.1.0
2455 verbose rebuildBundles stream-counter@0.1.0
2456 info install stream-counter@0.1.0
2457 info postinstall stream-counter@0.1.0
2458 silly lockFile 1eefcdd1-rty-node-modules-readable-stream tar://C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\readable-stream
2459 silly lockFile 1eefcdd1-rty-node-modules-readable-stream tar://C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\readable-stream
2460 silly lockFile e97f6868-adable-stream-1-0-17-package-tgz tar://C:\Users\Administrator\AppData\Roaming\npm-cache\readable-stream\1.0.17\package.tgz
2461 silly lockFile e97f6868-adable-stream-1-0-17-package-tgz tar://C:\Users\Administrator\AppData\Roaming\npm-cache\readable-stream\1.0.17\package.tgz
2462 info preinstall readable-stream@1.0.17
2463 verbose readDependencies using package.json deps
2464 verbose readDependencies using package.json deps
2465 silly resolved []
2466 verbose about to build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\readable-stream
2467 info build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty\node_modules\readable-stream
2468 verbose linkStuff [ true,
2468 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules',
2468 verbose linkStuff   false,
2468 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\express\\node_modules\\connect\\node_modules\\multiparty\\node_modules' ]
2469 info linkStuff readable-stream@1.0.17
2470 verbose linkBins readable-stream@1.0.17
2471 verbose linkMans readable-stream@1.0.17
2472 verbose rebuildBundles readable-stream@1.0.17
2473 info install readable-stream@1.0.17
2474 info postinstall readable-stream@1.0.17
2475 verbose about to build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty
2476 info build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect\node_modules\multiparty
2477 verbose linkStuff [ true,
2477 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules',
2477 verbose linkStuff   false,
2477 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\express\\node_modules\\connect\\node_modules' ]
2478 info linkStuff multiparty@2.1.8
2479 verbose linkBins multiparty@2.1.8
2480 verbose linkMans multiparty@2.1.8
2481 verbose rebuildBundles multiparty@2.1.8
2482 verbose rebuildBundles [ 'readable-stream', 'stream-counter' ]
2483 info install multiparty@2.1.8
2484 info postinstall multiparty@2.1.8
2485 verbose about to build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect
2486 info build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express\node_modules\connect
2487 verbose linkStuff [ true,
2487 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules',
2487 verbose linkStuff   false,
2487 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\express\\node_modules' ]
2488 info linkStuff connect@2.9.0
2489 verbose linkBins connect@2.9.0
2490 verbose linkMans connect@2.9.0
2491 verbose rebuildBundles connect@2.9.0
2492 verbose rebuildBundles [ 'bytes', 'multiparty', 'pause', 'qs', 'uid2' ]
2493 info install connect@2.9.0
2494 info postinstall connect@2.9.0
2495 verbose about to build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express
2496 info build C:\Users\Administrator\AppData\Roaming\npm\node_modules\express
2497 verbose linkStuff [ true,
2497 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules',
2497 verbose linkStuff   true,
2497 verbose linkStuff   'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules' ]
2498 info linkStuff express@3.4.0
2499 verbose linkBins express@3.4.0
2500 verbose link bins [ { express: './bin/express' },
2500 verbose link bins   'C:\\Users\\Administrator\\AppData\\Roaming\\npm',
2500 verbose link bins   true ]
2501 verbose linkMans express@3.4.0
2502 verbose rebuildBundles express@3.4.0
2503 verbose rebuildBundles [ 'buffer-crc32',
2503 verbose rebuildBundles   'commander',
2503 verbose rebuildBundles   'connect',
2503 verbose rebuildBundles   'cookie',
2503 verbose rebuildBundles   'cookie-signature',
2503 verbose rebuildBundles   'debug',
2503 verbose rebuildBundles   'fresh',
2503 verbose rebuildBundles   'methods',
2503 verbose rebuildBundles   'mkdirp',
2503 verbose rebuildBundles   'range-parser',
2503 verbose rebuildBundles   'send' ]
2504 info install express@3.4.0
2505 info postinstall express@3.4.0
2506 verbose exit [ 0, true ]
2507 error Error: write EIO
2507 error     at errnoException (net.js:901:11)
2507 error     at Object.afterWrite (net.js:718:19)
2508 error If you need help, you may report this log at:
2508 error     <http://github.com/isaacs/npm/issues>
2508 error or email it to:
2508 error     <npm-@googlegroups.com>
2509 error System Windows_NT 6.1.7601
2510 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "express"
2511 error cwd D:\crawlerAccessibility
2512 error node -v v0.10.17
2513 error npm -v 1.3.8
2514 error syscall write
2515 error code EIO
2516 error errno EIO
2517 verbose exit [ 1, true ]

@perlauge
Copy link

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 chcp 850 and running the exact same npm command it then works fine.

@swuphoto
Copy link

swuphoto commented Feb 7, 2014

@perlauge - thanks for pointing out the code page solution, my system locale for non-Unicode is English although I did have simplified chinese IME; but in command prompt the locale somehow set to it.

@othiym23
Copy link
Contributor

Closing as resolved. There are two ways to run into this problem, neither of them bugs in npm itself:

  1. Something unspecified is wrong with I/O on the system – the hard drive is going bad, something's wrong with the block device driver, the OS is having a meltdown, or
  2. You're running Windows and somehow you've ended up with a system codepage installed that's incompatible with how you're naming things. chcp 850 in cmd.exe should fix this.

@angeliaz
Copy link

angeliaz commented Dec 2, 2015

Thanks.I have solved this problem by typing the command chcp 850

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants