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

Whole npm install fails #5874

@brentax

Description

@brentax

I've tried two different ways of installing node/npm on an Ubuntu guest using Vagrant. The first version could only install about half of my dependencies. Then I ran this:

sudo apt-get update
sudo apt-get install -y python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

And npm install fails entirely with this output:

npm WARN package.json foodcoop-api@0.0.0 No repository field.
npm ERR! Error: ENOENT, chmod '/vagrant/node_modules/restify/node_modules/dtrace
-provider/binding.gyp'
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 Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! path /vagrant/node_modules/restify/node_modules/dtrace-provider/binding
.gyp
npm ERR! fstream_path /vagrant/node_modules/restify/node_modules/dtrace-provider
/binding.gyp
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chmod
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer
.js:305:19
npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
npm ERR! error rolling back Error: ETXTBSY, unlink '/vagrant/node_modules/restif
y/node_modules/bunyan/docs/index.html'
npm ERR! error rolling back  restify@2.8.1 { [Error: ETXTBSY, unlink '/vagrant/n
ode_modules/restify/node_modules/bunyan/docs/index.html']
npm ERR! error rolling back   errno: 62,
npm ERR! error rolling back   code: 'ETXTBSY',
npm ERR! error rolling back   path: '/vagrant/node_modules/restify/node_modules/
bunyan/docs/index.html' }
npm ERR! Error: UNKNOWN, symlink '../semver/bin/semver'
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 Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! path ../semver/bin/semver
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! error rolling back Error: ETXTBSY, unlink '/vagrant/node_modules/jasmin
e-node/node_modules/jasmine-reporters/ext/env.rhino.1.2.js'
npm ERR! error rolling back  jasmine-node@1.14.5 { [Error: ETXTBSY, unlink '/vag
rant/node_modules/jasmine-node/node_modules/jasmine-reporters/ext/env.rhino.1.2.
js']
npm ERR! error rolling back   errno: 62,
npm ERR! error rolling back   code: 'ETXTBSY',
npm ERR! error rolling back   path: '/vagrant/node_modules/jasmine-node/node_mod
ules/jasmine-reporters/ext/env.rhino.1.2.js' }
npm ERR! EEXIST, mkdir '/vagrant/node_modules/jasmine-node/node_modules/gaze/nod
e_modules/fileset/node_modules/glob/test'
File exists: /vagrant/node_modules/jasmine-node/node_modules/gaze/node_modules/f
ileset/node_modules/glob/test
Move it away, and try again.

npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! path /vagrant/node_modules/jasmine-node/node_modules/gaze/node_modules/
fileset/node_modules/glob/test
npm ERR! fstream_path /vagrant/node_modules/jasmine-node/node_modules/gaze/node_
modules/fileset/node_modules/glob/test/mark.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer
.js:171:23
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:37
:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ETXTBSY, unlink '/vagrant/node_modules/jshint
/node_modules/cli/cli.js'
npm ERR! error rolling back  jshint@2.5.2 { [Error: ETXTBSY, unlink '/vagrant/no
de_modules/jshint/node_modules/cli/cli.js']
npm ERR! error rolling back   errno: 62,
npm ERR! error rolling back   code: 'ETXTBSY',
npm ERR! error rolling back   path: '/vagrant/node_modules/jshint/node_modules/c
li/cli.js' }
npm ERR! EEXIST, mkdir '/vagrant/node_modules/jshint/node_modules/htmlparser2/li
b'
File exists: /vagrant/node_modules/jshint/node_modules/htmlparser2/lib
Move it away, and try again.

npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! path /vagrant/node_modules/jshint/node_modules/htmlparser2/lib
npm ERR! fstream_path /vagrant/node_modules/jshint/node_modules/htmlparser2/lib/
ProxyHandler.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer
.js:171:23
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:37
:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! EEXIST, mkdir '/vagrant/node_modules/jshint/node_modules/exit/test/fixt
ures'
File exists: /vagrant/node_modules/jshint/node_modules/exit/test/fixtures
Move it away, and try again.

npm ERR! System Linux 3.2.0-23-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /vagrant
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! path /vagrant/node_modules/jshint/node_modules/exit/test/fixtures
npm ERR! fstream_path /vagrant/node_modules/jshint/node_modules/exit/test/fixtur
es/log-broken.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/writer
.js:171:23
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/mkdirp/index.js:37
:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /vagrant/npm-debug.log
npm ERR! not ok code 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions