Error while "npm install express" #5481

Closed
Tookuk opened this Issue Jun 14, 2014 · 8 comments

Comments

Projects
None yet
8 participants

Tookuk commented Jun 14, 2014

What I try:

c:\nodejs>npm cache clean
c:\nodejs>npm install express

What I get:

npm http GET https://registry.npmjs.org/express
npm http 200 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/express/-/express-4.4.3.tgz
npm http 200 https://registry.npmjs.org/express/-/express-4.4.3.tgz
npm http GET https://registry.npmjs.org/type-is
npm http GET https://registry.npmjs.org/cookie
npm http GET https://registry.npmjs.org/vary
npm http GET https://registry.npmjs.org/serve-static
npm http GET https://registry.npmjs.org/send
npm http GET https://registry.npmjs.org/escape-html
npm http GET https://registry.npmjs.org/range-parser
npm http GET https://registry.npmjs.org/methods
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/proxy-addr
npm http GET https://registry.npmjs.org/buffer-crc32
npm http GET https://registry.npmjs.org/parseurl
npm http GET https://registry.npmjs.org/accepts
npm http GET https://registry.npmjs.org/fresh
npm http GET https://registry.npmjs.org/merge-descriptors
npm http GET https://registry.npmjs.org/cookie-signature
npm http GET https://registry.npmjs.org/utils-merge
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/path-to-regexp
npm http 200 https://registry.npmjs.org/cookie
npm http 200 https://registry.npmjs.org/type-is
npm http GET https://registry.npmjs.org/cookie/-/cookie-0.1.2.tgz
npm http GET https://registry.npmjs.org/type-is/-/type-is-1.2.1.tgz
npm http 200 https://registry.npmjs.org/range-parser
npm http GET https://registry.npmjs.org/range-parser/-/range-parser-1.0.0.tgz
npm http 200 https://registry.npmjs.org/escape-html
npm http 200 https://registry.npmjs.org/cookie/-/cookie-0.1.2.tgz
npm http GET https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz
npm http 200 https://registry.npmjs.org/serve-static
npm http GET https://registry.npmjs.org/serve-static/-/serve-static-1.2.3.tgz
npm http 200 https://registry.npmjs.org/methods
npm http 200 https://registry.npmjs.org/send
npm http GET https://registry.npmjs.org/methods/-/methods-1.0.1.tgz
npm http GET https://registry.npmjs.org/send/-/send-0.4.3.tgz
npm http 200 https://registry.npmjs.org/range-parser/-/range-parser-1.0.0.tgz
npm http 200 https://registry.npmjs.org/type-is/-/type-is-1.2.1.tgz
npm http 200 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/debug/-/debug-1.0.2.tgz
npm http 200 https://registry.npmjs.org/send/-/send-0.4.3.tgz
npm http 200 https://registry.npmjs.org/serve-static/-/serve-static-1.2.3.tgz
npm http 200 https://registry.npmjs.org/proxy-addr
npm http GET https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.1.tgz
npm http 200 https://registry.npmjs.org/methods/-/methods-1.0.1.tgz
npm http 200 https://registry.npmjs.org/escape-html/-/escape-html-1.0.1.tgz
npm http 200 https://registry.npmjs.org/vary
npm http 200 https://registry.npmjs.org/buffer-crc32
npm http GET https://registry.npmjs.org/vary/-/vary-0.1.0.tgz
npm http 200 https://registry.npmjs.org/debug/-/debug-1.0.2.tgz
npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/fresh
npm http 200 https://registry.npmjs.org/proxy-addr/-/proxy-addr-1.0.1.tgz
npm http GET https://registry.npmjs.org/fresh/-/fresh-0.2.2.tgz
npm http 200 https://registry.npmjs.org/merge-descriptors
npm http 200 https://registry.npmjs.org/cookie-signature
npm http 200 https://registry.npmjs.org/vary/-/vary-0.1.0.tgz
npm http GET https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.
3.tgz
npm http GET https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.
0.2.tgz
npm http 200 https://registry.npmjs.org/accepts
npm http GET https://registry.npmjs.org/accepts/-/accepts-1.0.3.tgz
npm http 200 https://registry.npmjs.org/parseurl
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http GET https://registry.npmjs.org/parseurl/-/parseurl-1.0.1.tgz
npm http 200 https://registry.npmjs.org/qs
npm http 200 https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.
3.tgz
npm http GET https://registry.npmjs.org/qs/-/qs-0.6.6.tgz
npm http 200 https://registry.npmjs.org/path-to-regexp
npm http 200 https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.
0.2.tgz
npm http GET https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.2.tg
z
npm http 200 https://registry.npmjs.org/accepts/-/accepts-1.0.3.tgz
npm http 200 https://registry.npmjs.org/fresh/-/fresh-0.2.2.tgz
npm http 200 https://registry.npmjs.org/parseurl/-/parseurl-1.0.1.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-0.6.6.tgz
npm http 200 https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.2.tg
z
npm http 200 https://registry.npmjs.org/utils-merge
npm http GET https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz
npm http 200 https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/mime-types
npm http GET https://registry.npmjs.org/negotiator
npm http GET https://registry.npmjs.org/ipaddr.js
npm http GET https://registry.npmjs.org/finished
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/ms
npm http 200 https://registry.npmjs.org/mime
npm http 200 https://registry.npmjs.org/mime-types
npm http GET https://registry.npmjs.org/mime-types/-/mime-types-1.0.0.tgz
npm http 200 https://registry.npmjs.org/finished
npm http 200 https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/finished/-/finished-1.2.2.tgz
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm http 200 https://registry.npmjs.org/negotiator
npm http 200 https://registry.npmjs.org/ipaddr.js
npm http GET https://registry.npmjs.org/negotiator/-/negotiator-0.4.6.tgz
npm http GET https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.2.tgz
npm http 200 https://registry.npmjs.org/mime-types/-/mime-types-1.0.0.tgz
npm http 200 https://registry.npmjs.org/finished/-/finished-1.2.2.tgz
npm http 200 https://registry.npmjs.org/ms
npm http GET https://registry.npmjs.org/ms/-/ms-0.6.2.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm http 200 https://registry.npmjs.org/negotiator/-/negotiator-0.4.6.tgz
npm http 200 https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.2.tgz
npm ERR! Error: ENOENT, lstat 'c:\nodejs\node_modules\express\node_modules\send\
node_modules\finished\.npmignore'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\nodejs\\\\node.exe" "c:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install" "express"
npm ERR! cwd c:\nodejs
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path c:\nodejs\node_modules\express\node_modules\send\node_modules\fini
shed\.npmignore
npm ERR! fstream_path c:\nodejs\node_modules\express\node_modules\send\node_modu
les\finished\.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack c:\nodejs\node_modules\npm\node_modules\fstream\lib\write
r.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'c:\nodejs\node_modules\express\node_modules\send\
node_modules\mime\README.md'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\nodejs\\\\node.exe" "c:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install" "express"
npm ERR! cwd c:\nodejs
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path c:\nodejs\node_modules\express\node_modules\send\node_modules\mime
\README.md
npm ERR! fstream_path c:\nodejs\node_modules\express\node_modules\send\node_modu
les\mime\README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack c:\nodejs\node_modules\npm\node_modules\fstream\lib\write
r.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat 'c:\nodejs\node_modules\express\node_modules\type-
is\node_modules\mime-types\lib\mime.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\nodejs\\\\node.exe" "c:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install" "express"
npm ERR! cwd c:\nodejs
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path c:\nodejs\node_modules\express\node_modules\type-is\node_modules\m
ime-types\lib\mime.json
npm ERR! fstream_path c:\nodejs\node_modules\express\node_modules\type-is\node_m
odules\mime-types\lib\mime.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack c:\nodejs\node_modules\npm\node_modules\fstream\lib\write
r.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/ms/-/ms-0.6.2.tgz
npm ERR! Error: UNKNOWN, open 'C:\Users\Tookuk\AppData\Roaming\npm-cache\mime\1.
2.11\package\package.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "c:\\nodejs\\\\node.exe" "c:\\nodejs\\node_modules\\npm\\bin\\n
pm-cli.js" "install" "express"
npm ERR! cwd c:\nodejs
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path C:\Users\Tookuk\AppData\Roaming\npm-cache\mime\1.2.11\package\pack
age.json
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     c:\nodejs\npm-debug.log
npm ERR! not ok code 0

facing similar issue as Tookuk

i found that 'jade' folder and sub folders are not created at all

npm ERR! Error: ENOENT, open 'C:\node\nodetest1\node_modules\jade\node_modules\transformers\node_modules\uglify-js\node_modules\source-map\CHANGELOG.md'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

ubehera commented Jun 15, 2014

I think I might have posted a duplicate of this issue here -> #5482
Anyways I fixed mine here - #5482 (comment)
This issue seems awfully similar, please check out my solution.

Member

faiq commented Jun 15, 2014

Awesome! I'm glad you figured it out! Do you think you could close the issue now, or do you need further assistance.

Even I have same Issue. Unable to install express.
image

plzz help

@iarna iarna added the support label Sep 19, 2014

Contributor

smikes commented Jan 28, 2015

Is this still a problem for you?

There are several people with similar issues here. One possible solution, if running on Windows or writing to a windows filesystem is to try npm install express --no-bin-links

Could you please upload your npm-debug.log as a gist http://gist.github.com? If possible, run npm with at least one -d flag to increase the logging level.

There have been a lot of improvements to npm -- especially around conflicts and race conditions during install -- since June 2014. Can you try updating your npm installation?

To update npm on Windows, follow the instructions here: https://github.com/npm/npm/wiki/Troubleshooting#upgrading-on-windows

We are trying to clean up older npm issues, so if we don't hear back from you within a week, we will close this issue. (Don't worry -- you can always come back again and open a new issue!)

Thanks!

Contributor

othiym23 commented Feb 20, 2015

Closing as abandoned.

@othiym23 othiym23 closed this Feb 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment