linux - Error on npm install -
i'm trying install npm packages via terminal , getting folowing errors. tried solutions @ npm github, none of them working.
removed node_modules , ran
npm install
again, still errors there.
npm err! error: enoent, open '/var/www/simulator/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/readme.md' npm err! if need help, may report log at: npm err! <http://github.com/isaacs/npm/issues> npm err! or email to: npm err! <npm-@googlegroups.com> npm err! system linux 3.13.0-55-generic npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! cwd /var/www/simulator npm err! node -v v0.10.25 npm err! npm -v 1.3.10 npm err! path /var/www/simulator/node_modules/express/node_modules/proxy-addr/node_modules/forwarded/readme.md npm err! code enoent npm err! errno 34 npm err! eexist, mkdir '/var/www/simulator/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js' file exists: /var/www/simulator/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js move away, , try again. npm err! system linux 3.13.0-55-generic npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! cwd /var/www/simulator npm err! node -v v0.10.25 npm err! npm -v 1.3.10 npm err! path /var/www/simulator/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js npm err! fstream_path /var/www/simulator/node_modules/express/node_modules/proxy-addr/node_modules/ipaddr.js/.npmignore npm err! fstream_type file npm err! fstream_class filewriter npm err! code eexist npm err! errno 47 npm err! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23 npm err! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53 npm err! fstream_stack object.oncomplete (fs.js:107:15) npm http https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-2.2.2.tgz npm err! error: unknown, symlink '../mime/cli.js' npm err! if need help, may report log at: npm err! <http://github.com/isaacs/npm/issues> npm err! or email to: npm err! <npm-@googlegroups.com> npm err! system linux 3.13.0-55-generic npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! cwd /var/www/simulator npm err! node -v v0.10.25 npm err! npm -v 1.3.10 npm err! path ../mime/cli.js npm err! code unknown npm err! errno -1 npm err! error rolling error: unknown, unlink '/var/www/simulator/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js' npm err! error rolling request@2.69.0 { [error: unknown, unlink '/var/www/simulator/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js'] npm err! error rolling errno: -1, npm err! error rolling code: 'unknown', npm err! error rolling path: '/var/www/simulator/node_modules/request/node_modules/tough-cookie/lib/pubsuffix.js' } npm err! error: enoent, chmod '/var/www/simulator/node_modules/request/node_modules/qs/test/parse.js' npm err! if need help, may report log at: npm err! <http://github.com/isaacs/npm/issues> npm err! or email to: npm err! <npm-@googlegroups.com> npm err! system linux 3.13.0-55-generic npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! cwd /var/www/simulator npm err! node -v v0.10.25 npm err! npm -v 1.3.10 npm err! path /var/www/simulator/node_modules/request/node_modules/qs/test/parse.js npm err! fstream_path /var/www/simulator/node_modules/request/node_modules/qs/test/parse.js 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/nodejs/fstream/lib/writer.js:305:19 npm err! fstream_stack object.oncomplete (fs.js:107:15) npm err! error rolling error: unknown, unlink '/var/www/simulator/node_modules/jade/node_modules/uglify-js/tools/domprops.json' npm err! error rolling jade@1.11.0 { [error: unknown, unlink '/var/www/simulator/node_modules/jade/node_modules/uglify-js/tools/domprops.json'] npm err! error rolling errno: -1, npm err! error rolling code: 'unknown', npm err! error rolling path: '/var/www/simulator/node_modules/jade/node_modules/uglify-js/tools/domprops.json' } npm err! error: enoent, utime '/var/www/simulator/node_modules/jade/node_modules/clean-css/lib/tokenizer/extract-properties.js' npm err! if need help, may report log at: npm err! <http://github.com/isaacs/npm/issues> npm err! or email to: npm err! <npm-@googlegroups.com> npm err! system linux 3.13.0-55-generic npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! cwd /var/www/simulator npm err! node -v v0.10.25 npm err! npm -v 1.3.10 npm err! path /var/www/simulator/node_modules/jade/node_modules/clean-css/lib/tokenizer/extract-properties.js npm err! fstream_path /var/www/simulator/node_modules/jade/node_modules/clean-css/lib/tokenizer/extract-properties.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/lib/nodejs/fstream/lib/writer.js:305:19 npm err! fstream_stack object.oncomplete (fs.js:107:15) npm err! eexist, mkdir '/var/www/simulator/node_modules/jade/node_modules/jstransformer/node_modules/promise/node_modules/asap' file exists: /var/www/simulator/node_modules/jade/node_modules/jstransformer/node_modules/promise/node_modules/asap move away, , try again. npm err! system linux 3.13.0-55-generic npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "install" npm err! cwd /var/www/simulator npm err! node -v v0.10.25 npm err! npm -v 1.3.10 npm err! path /var/www/simulator/node_modules/jade/node_modules/jstransformer/node_modules/promise/node_modules/asap npm err! fstream_path /var/www/simulator/node_modules/jade/node_modules/jstransformer/node_modules/promise/node_modules/asap/asap.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/nodejs/fstream/lib/writer.js:171:23 npm err! fstream_stack /usr/lib/nodejs/mkdirp/index.js:37:53 npm err! fstream_stack object.oncomplete (fs.js:107:15) npm err! error rolling error: enotempty, rmdir '/var/www/simulator/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema' npm err! error rolling http-signature@1.1.1 { [error: enotempty, rmdir '/var/www/simulator/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/js on-schema'] npm err! error rolling errno: 53, npm err! error rolling code: 'enotempty', npm err! error rolling path: '/var/www/simulator/node_modules/request/node_modules/http-signature/node_modules/jsprim/node_modules/json-schema' } npm err! error rolling error: unknown, unlink '/var/www/simulator/node_modules/jade/node_modules/with/node_modules/acorn-globals/node_modules/acorn/dist/acorn_loose.js' npm err! error rolling with@4.0.3 { [error: unknown, unlink '/var/www/simulator/node_modules/jade/node_modules/with/node_modules/acorn-globals/node_modules/acorn/dist/acorn_lo ose.js'] npm err! error rolling errno: -1, npm err! error rolling code: 'unknown', npm err! error rolling path: '/var/www/simulator/node_modules/jade/node_modules/with/node_modules/acorn-globals/node_modules/acorn/dist/acorn_loose.js' }
this happens because host windows & guest linux. if both of them *nix based not issue.
there 2 options sort out.
1.npm config set bin-links false
(but prevent being able use npm install -g install global binaries.)
2.npm install --no-bin-links
(looks have figured out yourself. recommend method well)
Comments
Post a Comment