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

npm install. fetch failed + ENOENT. infinite loop. #6137

Closed
k-funk opened this issue Sep 8, 2014 · 8 comments
Closed

npm install. fetch failed + ENOENT. infinite loop. #6137

k-funk opened this issue Sep 8, 2014 · 8 comments
Labels

Comments

@k-funk
Copy link

k-funk commented Sep 8, 2014

I've been having this issue as long as I've been trying to use npm. I'm not even sure what the real source of the problem is because the errors are endless.
I've read other issues [1], [2], and some suggest that I've got network issues. I've tried this on 3 networks with the same result, and am able to curl the files that npm is claiming that it can't fetch, so it's not that.

I tried removing node completely using this guide:
http://stackoverflow.com/a/11178106/1707152

And reinstalling using brew.

$ node --version && npm --version && git --version && sw_vers -productVersion
v0.10.31 #node
1.4.26  #npm
git version 2.0.4
10.9.4  #mac version

The dependencies that I'm trying to install are from angular-strap. I've tried removing the script attribute from package.json, and rm -rf node_modules directory before node install --dev each time but those don't seem to help.

npm WARN deprecated gulp-clean@0.3.1: use gulp-rimraf instead
npm WARN deprecated gulp-ngmin@0.3.0: Deprecated in favor of gulp-ng-annotate: https://github.com/Kagami/gulp-ng-annotate - Reasoning: https://github.com/btford/ngmin/issues/93
npm WARN deprecated ngmin@0.5.0: use ng-annotate instead

> argg@0.0.1 postinstall /Users/kfunk/Repo/angular-strap/node_modules/gulp-sourcemaps/node_modules/argg
> cat tip.txt

---
Tip: add to package.json
    "scripts": {
        "test": "node node_modules/argg tests/*.js",
        "cover": "istanbul cover --dir reports/coverage node_modules/argg tests/*.js",
        "plato": "plato -d reports/plato index.js"
    },

and you can do:
    npm test
    npm run cover
    npm run plato

---

> argg@0.0.1 postinstall /Users/kfunk/Repo/angular-strap/node_modules/gulp-uglify/node_modules/argg
> cat tip.txt

---
Tip: add to package.json
    "scripts": {
        "test": "node node_modules/argg tests/*.js",
        "cover": "istanbul cover --dir reports/coverage node_modules/argg tests/*.js",
        "plato": "plato -d reports/plato index.js"
    },

and you can do:
    npm test
    npm run cover
    npm run plato

---

> argg@0.0.1 postinstall /Users/kfunk/Repo/angular-strap/node_modules/gulp-concat-util/node_modules/concat-with-sourcemaps/node_modules/argg
> cat tip.txt

---
Tip: add to package.json
    "scripts": {
        "test": "node node_modules/argg tests/*.js",
        "cover": "istanbul cover --dir reports/coverage node_modules/argg tests/*.js",
        "plato": "plato -d reports/plato index.js"
    },

and you can do:
    npm test
    npm run cover
    npm run plato

---
npm ERR! fetch failed https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.0.tgz
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/gulp/node_modules/rimraf/AUTHORS'
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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/gulp/node_modules/rimraf/AUTHORS
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/gulp/node_modules/rimraf/AUTHORS
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-sourcemaps/node_modules/coveralls/node_modules/request'
npm ERR! error rolling back  coveralls@2.11.1 { [Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-sourcemaps/node_modules/coveralls/node_modules/request']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/Users/kfunk/Repo/angular-strap/node_modules/gulp-sourcemaps/node_modules/coveralls/node_modules/request' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-watch/node_modules/gaze/node_modules/grunt'
npm ERR! error rolling back  gaze@0.5.1 { [Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-watch/node_modules/gaze/node_modules/grunt']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/Users/kfunk/Repo/angular-strap/node_modules/gulp-watch/node_modules/gaze/node_modules/grunt' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-htmlmin/node_modules/html-minifier/node_modules/time-grunt/node_modules/figures'
npm ERR! error rolling back  time-grunt@1.0.0 { [Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-htmlmin/node_modules/html-minifier/node_modules/time-grunt/node_modules/figures']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/Users/kfunk/Repo/angular-strap/node_modules/gulp-htmlmin/node_modules/html-minifier/node_modules/time-grunt/node_modules/figures' }
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-rename/node_modules/map-stream/node_modules/asynct/.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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-rename/node_modules/map-stream/node_modules/asynct/.npmignore
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-rename/node_modules/map-stream/node_modules/asynct/.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-clean/node_modules/gulp-util/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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-clean/node_modules/gulp-util/package.json
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-clean/node_modules/gulp-util/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/connect/History.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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/connect/History.md
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/connect/History.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-uglify/node_modules/gulp-concat/node_modules/mocha-lcov-reporter/LICENSE'
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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-uglify/node_modules/gulp-concat/node_modules/mocha-lcov-reporter/LICENSE
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-uglify/node_modules/gulp-concat/node_modules/mocha-lcov-reporter/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! fetch failed https://registry.npmjs.org/package/-/package-1.0.1.tgz
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-htmlmin/node_modules/html-minifier/node_modules/time-grunt/node_modules/text-table/readme.markdown'
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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-htmlmin/node_modules/html-minifier/node_modules/time-grunt/node_modules/text-table/readme.markdown
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-htmlmin/node_modules/html-minifier/node_modules/time-grunt/node_modules/text-table/readme.markdown
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/stream-spigot'
npm ERR! error rolling back  through2@0.4.2 { [Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/stream-spigot']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/stream-spigot' }
npm ERR! EEXIST, mkdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._shimkeys'
File exists: /Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._shimkeys
Move it away, and try again.

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._shimkeys
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules/lodash._shimkeys/LICENSE.txt
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! fetch failed https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-0.2.13.tgz
npm ERR! Error: ENOENT, utime '/Users/kfunk/Repo/angular-strap/node_modules/gulp-changed/node_modules/through2/node_modules/bl/node_modules/tape/test/add-subtest-async.js'
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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-changed/node_modules/through2/node_modules/bl/node_modules/tape/test/add-subtest-async.js
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-changed/node_modules/through2/node_modules/bl/node_modules/tape/test/add-subtest-async.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:308:19
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules'
npm ERR! error rolling back  lodash.keys@2.4.1 { [Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/lodash.template/node_modules/lodash.keys/node_modules' }
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/xtend/node_modules/object-keys/node_modules/indexof/.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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/xtend/node_modules/object-keys/node_modules/indexof/.npmignore
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-ng-annotate/node_modules/through2/node_modules/xtend/node_modules/object-keys/node_modules/indexof/.npmignore
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/escodegen/LICENSE.source-map'
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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/escodegen/LICENSE.source-map
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/escodegen/LICENSE.source-map
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! EEXIST, mkdir '/Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/gulp/node_modules/orchestrator/node_modules/gulp-jshint'
File exists: /Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/gulp/node_modules/orchestrator/node_modules/gulp-jshint
Move it away, and try again.

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/gulp/node_modules/orchestrator/node_modules/gulp-jshint
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-connect/node_modules/gulp/node_modules/orchestrator/node_modules/gulp-jshint/.jshintrc
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:46:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-sourcemaps/node_modules/coveralls/node_modules/lcov-parse/node_modules/yui-lint/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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-sourcemaps/node_modules/coveralls/node_modules/lcov-parse/node_modules/yui-lint/package.json
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-sourcemaps/node_modules/coveralls/node_modules/lcov-parse/node_modules/yui-lint/package.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, utime '/Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/through2/node_modules/readable-stream/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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/through2/node_modules/readable-stream/README.md
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-ngmin/node_modules/gulp-util/node_modules/through2/node_modules/readable-stream/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call utimes
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:308:19
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/gulp-usemin/node_modules/through2/LICENSE'
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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/gulp-usemin/node_modules/through2/LICENSE
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/gulp-usemin/node_modules/through2/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
@k-funk
Copy link
Author

k-funk commented Sep 8, 2014

I tried changing the registry to use http instead of https, which seemed to cut down on the number of fetches that fail, but a few still fail.

I also can't get it to fail in the same order. Is the npm install multithreaded, and if so, can I force it to use a single thread for debugging?

npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/optimist/node_modules/hashish/README.markdown'
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 Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "--dev"
npm ERR! cwd /Users/kfunk/Repo/angular-strap
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.26
npm ERR! path /Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/optimist/node_modules/hashish/README.markdown
npm ERR! fstream_path /Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/optimist/node_modules/hashish/README.markdown
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/optimist/node_modules/wordwrap'
npm ERR! error rolling back  ibrik@1.1.1 { [Error: ENOTEMPTY, rmdir '/Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/optimist/node_modules/wordwrap']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/optimist/node_modules/wordwrap' }
npm ERR! Error: ENOENT, lstat '/Users/kfunk/Repo/angular-strap/node_modules/karma-coverage/node_modules/ibrik/node_modules/optimist/node_modules/wordwrap/test/break.js'
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>

(more infinite loop failing)... 


npm ERR! fetch failed https://registry.npmjs.org/jsd/-/jsd-1.1.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/jsd-plugins-bem/-/jsd-plugins-bem-1.2.1.tgz

During one of my runs a fetch failed for https://github.com/btford/grunt-release/archive/feat-tag-name.tar.gz , when I did a curl, I got html saying I was being redirected (...but I don't run into this error every run).
Still, why can't npm follow the HTTP 302? Why won't the install process end gracefully on failure?

@othiym23 othiym23 added the bug label Sep 15, 2014
@christopherobin
Copy link

Same for me, my devDependencies looks like:

{
  "devDependencies": {
    "faker": "^1.1.0",
    "gulp": "^3.8.8",
    "gulp-concat": "^2.4.0",
    "gulp-less": "^1.3.5",
    "gulp-sourcemaps": "^1.1.5",
    "gulp-uglify": "^1.0.1",
    "should": "^4.0.4",
    "supertest": "^0.13.0"
  }
}

When running npm install --dev I would get tons of those:

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/Users/crobin/.nvm/v0.10.30/bin/npm" "install" "--dev"
npm ERR! cwd /Users/crobin/Documents/Code/test
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.27
npm ERR! path /Users/crobin/Documents/Code/test/node_modules/gulp-sourcemaps/node_modules/faucet/node_modules/sprintf/node_modules/nodeunit/deps/ejs/node_modules/expresso/deps/jscoverage/Makefile.in
npm ERR! fstream_path /Users/crobin/Documents/Code/test/node_modules/gulp-sourcemaps/node_modules/faucet/node_modules/sprintf/node_modules/nodeunit/deps/ejs/node_modules/expresso/deps/jscoverage/Makefile.in
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Users/crobin/.nvm/v0.10.30/lib/node_modules/npm/node_modules/fstream/lib/writer.js:287:26
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! Error: ENOENT, lstat '/Users/crobin/Documents/Code/test/node_modules/gulp/node_modules/q/node_modules/promises-aplus-tests/node_modules/mocha/_mocha.js'
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>

Moving those dev dependencies to normal dependencies fixed the issue for me.

@edef1c
Copy link
Contributor

edef1c commented Sep 16, 2014

npm install --dev recursively installs devDependencies, which is a pretty serious stress test for all the npm machinery, and probably not what you want.
Just npm install (in an environment where NODE_ENV isn't set to production) will install devDependencies non-recursively, and is probably what you want.

@timoxley
Copy link
Contributor

Is there any reason to not remove --dev entirely? I don't know of any workflows that incorporate it, seems like confusing baggage.

@christopherobin
Copy link

Oups, I guess that's an habit I got from when I learned npm a few years back, just never hit that issue until today. I agree that removing it would make sense, and if not, then that current bug should be looked at, it's not normal for the whole thing to explode and spew thousands of exceptions.

@othiym23
Copy link
Contributor

install --dev is indeed marked for deprecation and removal because it's really hard to come up with a valid use case for it. @Raynos pushed for the behavior originally, and I'm not sure even he has used it. It's a breaking (unbreaking?) change, so it'll probably go into the next major version of npm (which is probably not that far off, given the team's current goals).

However, the ENOENT issues you're seeing are due to a race condition I believe we've finally addressed in npm@2.0.0 & npm@1.4.28 via the resolution of #6043. See that issue for details on what we fixed and how to upgrade to a fixed version of npm. Thanks for your patience!

@Raynos
Copy link
Contributor

Raynos commented Sep 16, 2014

Wait what, I am to blame for npm install --dev ?

I don't think I wanted that feature.

👍 on deprecation.

@k-funk
Copy link
Author

k-funk commented Sep 16, 2014

Awesome. npm install did install devDependencies as @nathan7 suggested, and got a successful install. Also with no ENOENTs.

k-funk added a commit to k-funk/angular-strap that referenced this issue Sep 16, 2014
--dev is marked for deprecation. I was unable to install the node modules using `npm install --dev` because it installs the devDependencies recursively, and my machine failed at that. `npm install` will will install devDependencies (except on production). See [this issue](npm/npm#6137 (comment)) for discussion.
mgcrea pushed a commit to mgcrea/angular-strap that referenced this issue Sep 17, 2014
--dev is marked for deprecation. I was unable to install the node modules using `npm install --dev` because it installs the devDependencies recursively, and my machine failed at that. `npm install` will will install devDependencies (except on production). See [this issue](npm/npm#6137 (comment)) for discussion.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants