I have a webapp using python cartridge. I need to use some less, but when i try to install with :
npm install less#1.6.3
I have an error:
npm install -g less#1.6.3
npm http GET //registry.npmjs.org/less/1.6.3
npm http 200 //registry.npmjs.org/less/1.6.3
npm http GET https://registry.npmjs.org/less/-/less-1.6.3.tgz
npm http 200 https://registry.npmjs.org/less/-/less-1.6.3.tgz
npm ERR! Error: EACCES, mkdir '/usr/lib/node_modules/less'
npm ERR! { [Error: EACCES, mkdir '/usr/lib/node_modules/less']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/usr/lib/node_modules/less',
npm ERR! fstream_type: 'Directory',
npm ERR! fstream_path: '/usr/lib/node_modules/less',
npm ERR! fstream_class: 'DirWriter',
npm ERR! fstream_stack:
npm ERR! [ '/usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23',
npm ERR! 'Object.oncomplete (/usr/lib/node_modules/npm/node_modules/mkdirp/index.js:51:17)' ] }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Linux 2.6.32-573.12.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "less#1.6.3"
npm ERR! cwd /var/lib/openshift/56fc035a2d5271ee8f00019a/app-root/runtime/repo
npm ERR! node -v v0.6.20
npm ERR! npm -v 1.1.37
npm ERR! path /usr/lib/node_modules/less
npm ERR! fstream_path /usr/lib/node_modules/less
npm ERR! fstream_type Directory
npm ERR! fstream_class DirWriter
npm ERR! code EACCES
npm ERR! message EACCES, mkdir '/usr/lib/node_modules/less'
npm ERR! errno 3
npm ERR! fstream_stack /usr/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:36:23
npm ERR! fstream_stack Object.oncomplete (/usr/lib/node_modules/npm/node_modules/mkdirp/index.js:51:17)
npm ERR! 3 errno
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/openshift/56fc035a2d5271ee8f00019a/app-root/runtime/repo/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 3
I try with
sudo npm install less#1.6.3
But we don't have access to sudo on openshift.
If someone expert with openshift can help me, I will very grateful :)
thank you for help :)
i try without -g but it didn't work with openshift
npm http GET https://registry.npmjs.org/less
npm http 304 https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/less/-/less-1.6.3.tgz
npm http 200 https://registry.npmjs.org/less/-/less-1.6.3.tgz
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/clean-css
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/source-map
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm http 200 https://registry.npmjs.org/source-map
npm http 200 https://registry.npmjs.org/request
npm http 200 https://registry.npmjs.org/clean-css
npm http GET https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm http GET https://registry.npmjs.org/clean-css/-/clean-css-2.0.8.tgz
npm http GET https://registry.npmjs.org/request/-/request-2.69.0.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz
npm http 200 https://registry.npmjs.org/request/-/request-2.69.0.tgz
npm http 200 https://registry.npmjs.org/clean-css/-/clean-css-2.0.8.tgz
npm WARN engine clean-css#2.0.8: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.20","npm":"1.1.37"})
npm WARN engine request#2.69.0: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.20","npm":"1.1.37"})
npm WARN engine source-map#0.1.43: wanted: {"node":">=0.8.0"} (current: {"node":"0.6.20","npm":"1.1.37"})
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/aws4
npm http GET https://registry.npmjs.org/bl
npm http GET https://registry.npmjs.org/caseless
npm http GET https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/extend
npm http GET https://registry.npmjs.org/har-validator
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/isstream
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/is-typedarray
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/stringstream
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/mime-types
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/amdefine
npm http 200 https://registry.npmjs.org/aws-sign2
npm http 200 https://registry.npmjs.org/bl
npm http 200 https://registry.npmjs.org/commander
npm http 200 https://registry.npmjs.org/form-data
npm http 200 https://registry.npmjs.org/aws4
npm http 200 https://registry.npmjs.org/forever-agent
npm http 200 https://registry.npmjs.org/caseless
npm http GET https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz
npm http 200 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/bl/-/bl-1.0.3.tgz
npm http GET https://registry.npmjs.org/commander/-/commander-2.0.0.tgz
npm http 200 https://registry.npmjs.org/extend
npm http 200 https://registry.npmjs.org/isstream
npm http GET https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz
npm http GET https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc4.tgz
npm http 200 https://registry.npmjs.org/har-validator
npm http 200 https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz
npm http GET https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz
npm http 200 https://registry.npmjs.org/is-typedarray
npm http 200 https://registry.npmjs.org/json-stringify-safe
npm http 200 https://registry.npmjs.org/hawk
npm http 200 https://registry.npmjs.org/stringstream
npm WARN optional dep failed, continuing request#2.69.0
npm http 200 https://registry.npmjs.org/tunnel-agent
npm http 200 https://registry.npmjs.org/mime-types
npm http 200 https://registry.npmjs.org/node-uuid
npm http 200 https://registry.npmjs.org/qs
npm http 200 https://registry.npmjs.org/bl/-/bl-1.0.3.tgz
npm http 200 https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz
npm http 200 https://registry.npmjs.org/oauth-sign
npm http 200 https://registry.npmjs.org/amdefine
npm http 200 https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/extend/-/extend-3.0.0.tgz
npm http GET https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz
npm http GET https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz
npm http GET https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz
npm http GET https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz
npm http GET https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz
npm http GET https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz
npm http GET https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz
npm http 200 https://registry.npmjs.org/form-data/-/form-data-1.0.0-rc4.tgz
npm http 200 https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz
npm http 200 https://registry.npmjs.org/caseless/-/caseless-0.11.0.tgz
npm http 200 https://registry.npmjs.org/commander/-/commander-2.0.0.tgz
npm http 200 https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz
npm http 200 https://registry.npmjs.org/har-validator/-/har-validator-2.0.6.tgz
npm http 200 https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz
npm http 200 https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz
npm http 200 https://registry.npmjs.org/extend/-/extend-3.0.0.tgz
npm http 200 https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz
npm http GET https://registry.npmjs.org/mime-types/-/mime-types-2.1.10.tgz
npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.2.tgz
npm http GET https://registry.npmjs.org/qs/-/qs-6.0.2.tgz
npm http GET https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.7.tgz
npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.1.tgz
npm http GET https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.2.2.tgz
npm http GET https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz
npm http 200 https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz
npm http 200 https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz
npm http 200 https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-6.0.2.tgz
npm http 200 https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.7.tgz
npm http 200 https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.2.2.tgz
npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.1.tgz
npm http 200 https://registry.npmjs.org/amdefine/-/amdefine-1.0.0.tgz
npm http 200 https://registry.npmjs.org/mime-types/-/mime-types-2.1.10.tgz
npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.2.tgz
less#1.6.3 node_modules/less
├── mime#1.2.11
├── mkdirp#0.3.5
├── source-map#0.1.43 (amdefine#1.0.0)
└── clean-css#2.0.8 (commander#2.0.0)
npm ERR! tar pack Error reading /tmp/npm-445706/1459419659599-0.8059858318883926/package
npm ERR! addLocalDirectory Could not pack "/tmp/npm-445706/1459419659599-0.8059858318883926/package" to "/var/lib/openshift/56fcf5870c1e668c6900009e/app-root/runtime/.npm/qs/6.0.2/package.tgz"
npm ERR! Error: ENOENT, lstat '/tmp/npm-445706/1459419659637-0.6426318113226444/package/lib/pubsuffix.js'
npm ERR! { [Error: ENOENT, lstat '/tmp/npm-445706/1459419659637-0.6426318113226444/package/lib/pubsuffix.js']
npm ERR! errno: 34,
npm ERR! code: 'ENOENT',
npm ERR! path: '/tmp/npm-445706/1459419659637-0.6426318113226444/package/lib/pubsuffix.js',
npm ERR! fstream_type: 'File',
npm ERR! fstream_path: '/tmp/npm-445706/1459419659637-0.6426318113226444/package/lib/pubsuffix.js',
npm ERR! fstream_class: 'FileWriter',
npm ERR! fstream_stack: [ 'Object.oncomplete (/usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26)' ] }
npm ERR! 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 Linux 2.6.32-573.12.1.el6.x86_64
npm ERR! command "node" "/usr/bin/npm" "install" "less#1.6"
npm ERR! cwd /var/lib/openshift/56fcf5870c1e668c6900009e/app-root/runtime/repo
npm ERR! node -v v0.6.20
npm ERR! npm -v 1.1.37
npm ERR! path /tmp/npm-445706/1459419659637-0.6426318113226444/package/lib/pubsuffix.js
npm ERR! fstream_path /tmp/npm-445706/1459419659637-0.6426318113226444/package/lib/pubsuffix.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! message ENOENT, lstat '/tmp/npm-445706/1459419659637-0.6426318113226444/package/lib/pubsuffix.js'
npm ERR! errno 34
npm ERR! fstream_stack Object.oncomplete (/usr/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26)
npm ERR! 34 errno
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/lib/openshift/56fcf5870c1e668c6900009e/app-root/runtime/repo/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 34
export HOME=$HOME/app-root/runtime/repo cd app-root/runtime/repo npm install -g
I am trying to install socket.io on debian and run eBot for CS:GO, but I tried everything that i found and still getting error when running "npm install socket.io". I am including output from terminal. Any ideas how to fix it? When i try to run eBot it say that Websocket server crashed.
root#debian:/home/ebotv3/ebot-csgo# npm install socket.io
npm http GET http://registry.npmjs.org/socket.io
npm http 304 http://registry.npmjs.org/socket.io
npm http GET http://registry.npmjs.org/engine.io/1.5.4
npm http GET http://registry.npmjs.org/socket.io-parser/2.2.4
npm http GET http://registry.npmjs.org/socket.io-client/1.3.7
npm http GET http://registry.npmjs.org/socket.io-adapter/0.3.1
npm http GET http://registry.npmjs.org/has-binary-data/0.1.3
npm http GET http://registry.npmjs.org/debug/2.1.0
npm http 304 http://registry.npmjs.org/engine.io/1.5.4
npm http 304 http://registry.npmjs.org/socket.io-parser/2.2.4
npm http 304 http://registry.npmjs.org/debug/2.1.0
npm http 304 http://registry.npmjs.org/socket.io-client/1.3.7
npm http 304 http://registry.npmjs.org/socket.io-adapter/0.3.1
npm http 304 http://registry.npmjs.org/has-binary-data/0.1.3
npm http GET http://registry.npmjs.org/debug/1.0.2
npm http GET http://registry.npmjs.org/socket.io-parser/2.2.2
npm http GET http://registry.npmjs.org/object-keys/1.0.1
npm http GET http://registry.npmjs.org/ms/0.6.2
npm http GET http://registry.npmjs.org/isarray/0.0.1
npm http GET http://registry.npmjs.org/ws/0.8.0
npm http GET http://registry.npmjs.org/base64id/0.1.0
npm http GET http://registry.npmjs.org/debug/1.0.3
npm http GET http://registry.npmjs.org/engine.io-parser/1.2.2
npm http GET http://registry.npmjs.org/component-bind/1.0.0
npm http GET http://registry.npmjs.org/component-emitter/1.1.2
npm http GET http://registry.npmjs.org/object-component/0.0.3
npm http GET http://registry.npmjs.org/backo2/1.0.2
npm http GET http://registry.npmjs.org/has-binary/0.1.6
npm http GET http://registry.npmjs.org/parseuri/0.0.2
npm http GET http://registry.npmjs.org/to-array/0.1.3
npm http GET http://registry.npmjs.org/indexof/0.0.1
npm http GET http://registry.npmjs.org/debug/0.7.4
npm http GET http://registry.npmjs.org/engine.io-client/1.5.4
npm http 304 http://registry.npmjs.org/debug/1.0.2
npm http 304 http://registry.npmjs.org/socket.io-parser/2.2.2
npm http GET http://registry.npmjs.org/json3/3.2.6
npm http GET http://registry.npmjs.org/benchmark/1.0.0
npm http 304 http://registry.npmjs.org/ws/0.8.0
npm http 304 http://registry.npmjs.org/ms/0.6.2
npm http 304 http://registry.npmjs.org/base64id/0.1.0
npm http 304 http://registry.npmjs.org/engine.io-parser/1.2.2
npm http 304 http://registry.npmjs.org/debug/1.0.3
npm http GET http://registry.npmjs.org/ms/0.6.2
npm http 304 http://registry.npmjs.org/component-emitter/1.1.2
npm http GET http://registry.npmjs.org/utf8/2.1.0
npm http GET http://registry.npmjs.org/blob/0.0.4
npm http GET http://registry.npmjs.org/after/0.8.1
npm http GET http://registry.npmjs.org/arraybuffer.slice/0.0.6
npm http GET http://registry.npmjs.org/base64-arraybuffer/0.1.2
npm http GET http://registry.npmjs.org/options
npm http GET http://registry.npmjs.org/ultron
npm http GET http://registry.npmjs.org/bufferutil
npm http GET http://registry.npmjs.org/utf-8-validate
npm http 304 http://registry.npmjs.org/component-bind/1.0.0
npm http 304 http://registry.npmjs.org/object-component/0.0.3
npm http 304 http://registry.npmjs.org/object-keys/1.0.1
npm http GET http://registry.npmjs.org/component-emitter/1.1.2
npm http 304 http://registry.npmjs.org/has-binary/0.1.6
npm http 304 http://registry.npmjs.org/parseuri/0.0.2
npm http 304 http://registry.npmjs.org/isarray/0.0.1
npm http 304 http://registry.npmjs.org/debug/0.7.4
npm http 304 http://registry.npmjs.org/indexof/0.0.1
npm http 304 http://registry.npmjs.org/to-array/0.1.3
npm http 304 http://registry.npmjs.org/engine.io-client/1.5.4
npm http 304 http://registry.npmjs.org/ms/0.6.2
npm http 304 http://registry.npmjs.org/backo2/1.0.2
npm http GET http://registry.npmjs.org/better-assert
npm http 304 http://registry.npmjs.org/blob/0.0.4
npm http GET http://registry.npmjs.org/isarray/0.0.1
npm http 304 http://registry.npmjs.org/benchmark/1.0.0
npm http GET http://registry.npmjs.org/component-inherit/0.0.3
npm http GET http://registry.npmjs.org/debug/1.0.4
npm http GET http://registry.npmjs.org/engine.io-parser/1.2.2
npm http GET http://registry.npmjs.org/has-cors/1.0.3
npm http GET http://registry.npmjs.org/parsejson/0.0.1
npm http GET http://registry.npmjs.org/parseqs/0.0.2
npm http GET http://registry.npmjs.org/ws/0.8.0
npm http GET http://registry.npmjs.org/parseuri/0.0.4
npm http GET https://github.com/rase-/node-XMLHttpRequest/archive/a6b6f2.tar.gz
npm http 304 http://registry.npmjs.org/utf8/2.1.0
npm http 304 http://registry.npmjs.org/arraybuffer.slice/0.0.6
npm http 304 http://registry.npmjs.org/after/0.8.1
npm http 304 http://registry.npmjs.org/json3/3.2.6
npm http 304 http://registry.npmjs.org/options
npm http 304 http://registry.npmjs.org/ultron
npm http 304 http://registry.npmjs.org/bufferutil
npm http 304 http://registry.npmjs.org/utf-8-validate
npm http 304 http://registry.npmjs.org/isarray/0.0.1
npm http GET http://registry.npmjs.org/bindings
npm http GET http://registry.npmjs.org/nan
npm http 304 http://registry.npmjs.org/better-assert
npm http 304 http://registry.npmjs.org/component-emitter/1.1.2
npm http 304 http://registry.npmjs.org/debug/1.0.4
npm http GET http://registry.npmjs.org/callsite/1.0.0
npm http 304 http://registry.npmjs.org/component-inherit/0.0.3
npm http 304 http://registry.npmjs.org/parsejson/0.0.1
npm http 304 http://registry.npmjs.org/engine.io-parser/1.2.2
npm http 304 http://registry.npmjs.org/ws/0.8.0
npm http 304 http://registry.npmjs.org/has-cors/1.0.3
npm http 304 http://registry.npmjs.org/parseqs/0.0.2
npm http 200 https://github.com/rase-/node-XMLHttpRequest/archive/a6b6f2.tar.gz
npm http 304 http://registry.npmjs.org/base64-arraybuffer/0.1.2
npm http 304 http://registry.npmjs.org/bindings
npm http 304 http://registry.npmjs.org/parseuri/0.0.4
npm http GET http://registry.npmjs.org/isarray/0.0.1
npm http 304 http://registry.npmjs.org/callsite/1.0.0
npm http 304 http://registry.npmjs.org/nan
npm ERR! error installing utf-8-validate#1.2.1
npm ERR! error installing bufferutil#1.2.1
npm ERR! error installing ws#0.8.0
npm ERR! error installing engine.io#1.5.4
npm ERR! error installing socket.io#1.3.7
npm ERR! Error: No compatible version found: nan#'^2.0.5'
npm ERR! Valid install targets:
npm ERR! ["0.3.0-wip","0.3.0-wip2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.6.0","0.7.0","0.7.1","0.8.0","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.4.2","1.4.3","1.5.1","1.5.2","1.6.0","1.5.3","1.6.1","1.6.2","1.7.0","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.9.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:488:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:375:15
npm ERR! at Object.saved [as oncomplete] (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! 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!
npm ERR! System Linux 3.2.0-4-amd64
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io"
npm ERR! cwd /home/ebotv3/ebot-csgo
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! message No compatible version found: nan#'^2.0.5'
npm ERR! message Valid install targets:
npm ERR! message ["0.3.0-wip","0.3.0-wip2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.6.0","0.7.0","0.7.1","0.8.0","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.4.2","1.4.3","1.5.1","1.5.2","1.6.0","1.5.3","1.6.1","1.6.2","1.7.0","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.9.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0"]
npm http GET http://registry.npmjs.org/better-assert
npm http GET https://github.com/component/global/archive/v2.0.1.tar.gz
npm http GET http://registry.npmjs.org/ms/0.6.2
npm http GET http://registry.npmjs.org/after/0.8.1
npm http GET http://registry.npmjs.org/arraybuffer.slice/0.0.6
npm http GET http://registry.npmjs.org/base64-arraybuffer/0.1.2
npm http GET http://registry.npmjs.org/blob/0.0.4
npm http GET http://registry.npmjs.org/utf8/2.1.0
npm http 304 http://registry.npmjs.org/isarray/0.0.1
npm ERR! error installing has-binary#0.1.6
npm ERR! error installing engine.io-parser#1.2.2
npm http GET http://registry.npmjs.org/options
npm http GET http://registry.npmjs.org/ultron
npm http GET http://registry.npmjs.org/bufferutil
npm http GET http://registry.npmjs.org/utf-8-validate
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ebotv3/ebot-csgo/npm-debug.log
npm not ok
You need to upgrade your version of node. node v0.6 is really old and not only is the version of npm you're using too old to support the caret (^) used in version specifiers, but nan does not support node v0.6 anyway.
i have a weird issue with nodejs' npm on one of my windows machines. I cannot install any module, i always get errors.
Let's take the typescript module as an example. On one windows 7 machine (running npm 1.4.3), when i install typescript, it looks like this:
C:\Users\myuser>npm install -g typescript
npm http GET https://registry.npmjs.org/typescript
npm http 200 https://registry.npmjs.org/typescript
npm http GET https://registry.npmjs.org/typescript/-/typescript-1.0.0.tgz
npm http 200 https://registry.npmjs.org/typescript/-/typescript-1.0.0.tgz
C:\Users\myuser\AppData\Roaming\npm\tsc -> C:\Users\myuser\AppData\Roaming\npm
ode_modules\typescript\bin\tsc
typescript#1.0.0 C:\Users\myuser\AppData\Roaming\npm\node_modules\typescript
So, it looks Ok, everything works as expected.
Now, on my other windows machine, also running Windows 7, also running npm 1.4.3, it looks like this when i try to install typescript:
C:\Users\sbusse>npm install -g typescript
npm http GET https://registry.npmjs.org/typescript
npm http 304 https://registry.npmjs.org/typescript
npm http GET https://registry.npmjs.org/jake
npm http 304 https://registry.npmjs.org/jake
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/utilities
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/utilities
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/jshint
npm http GET https://registry.npmjs.org/cover
npm http GET https://registry.npmjs.org/promises-aplus-tests
npm http GET https://registry.npmjs.org/opener
npm http GET https://registry.npmjs.org/grunt
npm http GET https://registry.npmjs.org/jasmine-node/1.11.0
npm http GET https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/grunt-contrib-uglify
npm http GET https://registry.npmjs.org/tap
npm http GET https://registry.npmjs.org/matcha
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/jshint
npm http 304 https://registry.npmjs.org/lru-cache
npm http 304 https://registry.npmjs.org/promises-aplus-tests
npm http 304 https://registry.npmjs.org/opener
npm http 304 https://registry.npmjs.org/jasmine-node/1.11.0
npm http 304 https://registry.npmjs.org/grunt
npm http 304 https://registry.npmjs.org/cover
npm http 304 https://registry.npmjs.org/grunt-cli
npm http 304 https://registry.npmjs.org/grunt-contrib-uglify
npm http 304 https://registry.npmjs.org/tap
npm http 304 https://registry.npmjs.org/matcha
npm http GET https://registry.npmjs.org/weak
npm http 304 https://registry.npmjs.org/weak
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/resolve
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/mocha
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/sinon
npm http GET https://registry.npmjs.org/coffee-script
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/eventemitter2
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/hooker
npm http GET https://registry.npmjs.org/iconv-lite
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/underscore.string
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/js-yaml
npm http GET https://registry.npmjs.org/exit
npm http GET https://registry.npmjs.org/getobject
npm http GET https://registry.npmjs.org/grunt-legacy-util
npm http GET https://registry.npmjs.org/temporary
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/grunt-contrib-nodeunit
npm http GET https://registry.npmjs.org/grunt-contrib-watch
npm http GET https://registry.npmjs.org/difflet
npm http GET https://registry.npmjs.org/semver/2.1.0
npm http GET https://registry.npmjs.org/shelljs
npm http 304 https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/electron
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/mocha
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/mocha
npm http 304 https://registry.npmjs.org/findup-sync
npm http 304 https://registry.npmjs.org/resolve
npm http 304 https://registry.npmjs.org/dateformat/1.0.2-1.2.3
npm http 304 https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/grunt-lib-contrib
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/grunt-contrib-jshint
npm http GET https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/console-browserify
npm http GET https://registry.npmjs.org/grunt-contrib-clean
npm http GET https://registry.npmjs.org/cli
npm http GET https://registry.npmjs.org/grunt-contrib-internal
npm http GET https://registry.npmjs.org/coveraje
npm http GET https://registry.npmjs.org/browserify
npm http 304 https://registry.npmjs.org/sinon
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http 304 https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/nodeunit
npm http GET https://registry.npmjs.org/sinon
npm http 304 https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/slide
npm http GET https://registry.npmjs.org/runforcover
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/difflet
npm http GET https://registry.npmjs.org/deep-equal
npm http GET https://registry.npmjs.org/buffer-equal
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/sinon/-/sinon-1.7.3.tgz
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/eventemitter2
npm http 304 https://registry.npmjs.org/iconv-lite
npm http 304 https://registry.npmjs.org/hooker
npm http 304 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/jasmine-growl-reporter
npm http GET https://registry.npmjs.org/walkdir
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/gaze
npm http GET https://registry.npmjs.org/requirejs
npm http GET https://registry.npmjs.org/jasmine-reporters
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/grunt-contrib-nodeunit
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/exit
npm http 304 https://registry.npmjs.org/underscore.string
npm http 304 https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/grunt-contrib-nodeunit
npm http 304 https://registry.npmjs.org/js-yaml
npm http 200 https://registry.npmjs.org/sinon/-/sinon-1.7.3.tgz
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http 304 https://registry.npmjs.org/getobject
npm http GET https://registry.npmjs.org/cli-table
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/grunt-legacy-util
npm http 304 https://registry.npmjs.org/temporary
npm http 304 https://registry.npmjs.org/grunt-contrib-nodeunit
npm http 304 https://registry.npmjs.org/difflet
npm http 304 https://registry.npmjs.org/semver/2.1.0
npm http 304 https://registry.npmjs.org/grunt-contrib-watch
npm http 304 https://registry.npmjs.org/electron
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/mocha
npm http 304 https://registry.npmjs.org/shelljs
npm http 304 https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/drip
npm http GET https://registry.npmjs.org/chai-spies
npm http GET https://registry.npmjs.org/chai
npm http 304 https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/grunt-lib-contrib
npm http 304 https://registry.npmjs.org/console-browserify
npm http 304 https://registry.npmjs.org/grunt-contrib-jshint
npm http 304 https://registry.npmjs.org/grunt-contrib-clean
npm http 304 https://registry.npmjs.org/cli
npm http 304 https://registry.npmjs.org/grunt-contrib-internal
npm http 304 https://registry.npmjs.org/coveraje
npm http 304 https://registry.npmjs.org/sinon
npm http 304 https://registry.npmjs.org/nodeunit
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/difflet
npm http 304 https://registry.npmjs.org/slide
npm http 304 https://registry.npmjs.org/runforcover
npm http 304 https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/browserify
npm http 304 https://registry.npmjs.org/buffer-equal
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/jasmine-growl-reporter
npm http 304 https://registry.npmjs.org/requirejs
npm http 304 https://registry.npmjs.org/walkdir
npm http 304 https://registry.npmjs.org/gaze
npm http 304 https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/benchmark
npm http 304 https://registry.npmjs.org/jasmine-reporters
npm http 304 https://registry.npmjs.org/grunt-contrib-nodeunit
npm http 304 https://registry.npmjs.org/grunt-contrib-nodeunit
npm http 304 https://registry.npmjs.org/cli-table
npm http GET https://registry.npmjs.org/jasmine-reporters/-/jasmine-reporters-0.4.0.tgz
npm http 304 https://registry.npmjs.org/drip
npm http 304 https://registry.npmjs.org/chai
npm http 304 https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/chai-spies
npm http GET https://registry.npmjs.org/read-package-json
npm http GET https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/charm
npm http GET https://registry.npmjs.org/deep-is
npm http GET https://registry.npmjs.org/ent
npm http 200 https://registry.npmjs.org/benchmark
npm http 200 https://registry.npmjs.org/jasmine-reporters/-/jasmine-reporters-0.4.0.tgz
npm http GET https://registry.npmjs.org/grunt/0.4.2
npm http GET https://registry.npmjs.org/nodelint
npm http 304 https://registry.npmjs.org/read-package-json
npm http 304 https://registry.npmjs.org/deep-is
npm http 304 https://registry.npmjs.org/charm
npm http 304 https://registry.npmjs.org/ent
npm http GET https://registry.npmjs.org/bunker
npm http 200 https://registry.npmjs.org/grunt/0.4.2
npm http 304 https://registry.npmjs.org/traverse
npm http GET https://registry.npmjs.org/package
npm http GET https://registry.npmjs.org/sinon/1.2.0
npm http 304 https://registry.npmjs.org/nodelint
npm http GET https://registry.npmjs.org/grunt/-/grunt-0.4.2.tgz
npm http GET https://registry.npmjs.org/zlib-browserify/0.0.1
npm http 304 https://registry.npmjs.org/bunker
npm http 200 https://registry.npmjs.org/package
npm http 200 https://registry.npmjs.org/sinon/1.2.0
npm http 304 https://registry.npmjs.org/zlib-browserify/0.0.1
npm http 200 https://registry.npmjs.org/grunt/-/grunt-0.4.2.tgz
npm http GET https://registry.npmjs.org/sinon/-/sinon-1.2.0.tgz
npm http GET https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-0.8.0.tgz
npm http 200 https://registry.npmjs.org/sinon/-/sinon-1.2.0.tgz
npm http GET https://registry.npmjs.org/jshint/-/jshint-2.4.4.tgz
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/graceful-fs
npm http 200 https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-0.8.0.tgz
npm http GET https://registry.npmjs.org/colors/0.3.0
npm http 200 https://registry.npmjs.org/jshint/-/jshint-2.4.4.tgz
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/colors/0.3.0
npm http GET https://registry.npmjs.org/tape
npm http GET https://registry.npmjs.org/tape
npm http GET https://registry.npmjs.org/folio
npm http 304 https://registry.npmjs.org/tape
npm http 304 https://registry.npmjs.org/tape
npm http GET https://registry.npmjs.org/burrito
npm http 304 https://registry.npmjs.org/folio
npm http GET https://registry.npmjs.org/codex
npm http GET https://registry.npmjs.org/normalize-package-data
npm http 304 https://registry.npmjs.org/burrito
npm http 304 https://registry.npmjs.org/codex
npm http 304 https://registry.npmjs.org/normalize-package-data
npm http GET https://registry.npmjs.org/jshint/-/jshint-2.0.1.tgz
npm http GET https://registry.npmjs.org/codex/-/codex-0.2.3.tgz
npm ERR! Error: ENOENT, lstat 'C:\Users\sbusse\AppData\Roaming\npm\node_modules\typescript\node_modules\jake\node_modules\q\node_modules\grunt-cli\node_modules\resolve\node_modules\tap\node_modules\di
fflet\node_modules\charm\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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "typescript"
npm ERR! cwd C:\Users\sbusse
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path C:\Users\sbusse\AppData\Roaming\npm\node_modules\typescript\node_modules\jake\node_modules\q\node_modules\grunt-cli\node_modules\resolve\node_modules\tap\node_modules\difflet\node_module
s\charm\README.markdown
npm ERR! fstream_path C:\Users\sbusse\AppData\Roaming\npm\node_modules\typescript\node_modules\jake\node_modules\q\node_modules\grunt-cli\node_modules\resolve\node_modules\tap\node_modules\difflet\nod
e_modules\charm\README.markdown
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/codex/-/codex-0.2.3.tgz
npm http GET https://registry.npmjs.org/argparse
npm http GET https://registry.npmjs.org/esprima
npm http 200 https://registry.npmjs.org/jshint/-/jshint-2.0.1.tgz
npm ERR! Error: ENOENT, chmod 'C:\Users\sbusse\AppData\Roaming\npm\node_modules\typescript\node_modules\jake\node_modules\q\node_modules\grunt-cli\node_modules\resolve\node_modules\tap\node_modules\gl
ob\glob.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 Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "typescript"
npm ERR! cwd C:\Users\sbusse
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path C:\Users\sbusse\AppData\Roaming\npm\node_modules\typescript\node_modules\jake\node_modules\q\node_modules\grunt-cli\node_modules\resolve\node_modules\tap\node_modules\glob\glob.js
npm ERR! fstream_path C:\Users\sbusse\AppData\Roaming\npm\node_modules\typescript\node_modules\jake\node_modules\q\node_modules\grunt-cli\node_modules\resolve\node_modules\tap\node_modules\glob\glob.j
s
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 C:\Program Files\nodejs\node_modules\npm\node_modules\fstream\lib\writer.js:305:19
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/esprima
npm http 200 https://registry.npmjs.org/argparse
^CBatchvorgang abbrechen (J/N)? j
I stopped the process here, because it will run forever. Seriously, i let it run for 20 minutes and it wouldn't stop.
Now i have tried numerous things. Obviously de- and reinstalling nodejs, cleaning cache, deleting the whole npm and/or node_modules folders, installing older versions of nodejs and npm, but no luck. I also experimented with using the 32 or 64 bit versions of nodejs, but it made no difference. The windows machines also have the same state of windows updates installed. There is definitely something wrong with my second windows machine, but I don't know how to debug and find the cause. I am out of ideas.
Does anyone know, what the issue might be? Thanks in advance.
Use the following process:
Compare the npm config on both machines:
npm config ls -l
Compare the environment path on both machines:
echo $env:path
Reduce the global package installation configuration:
The Node installer installs, directly into the npm folder, a special piece of Windows-specific configuration that tells npm where to install global packages. When npm is used to install itself, it is supposed to copy this special builtin configuration into the new install. There was a bug in some versions of npm that kept this from working, so you may need to go in and fix that up by hand. If %APPDATA%\npm\node_modules\npm\npmrc does not exist, you'll need to create it yourself. (%APPDATA% defaults to :\Users\\AppData\Roaming). All you need to put in that file is:
prefix=${APPDATA}/npm
Incidentally, if you would prefer that packages not be installed to your roaming profile (because you have a quota on your shared network, or it makes logging in or out from a domain sluggish), you can put it in your local app data instead:
prefix=${LOCALAPPDATA}/npm
...as well as copying %APPDATA%\npm to %LOCALAPPDATA%\npm (and updating your %PATH%, of course).
Everyone who works on npm knows that this process is complicated and fraught, and we're working on making it simpler. Stay tuned.
References
Troubleshooting NPM
I have encountered following error while trying install mongoose.
npm http GET https://registry.npmjs.org/mongoose
npm http 200 https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/mongoose/-/mongoose-3.6.0rc0.tgz
npm http 200 https://registry.npmjs.org/mongoose/-/mongoose-3.6.0rc0.tgz
npm http GET https://registry.npmjs.org/hooks/0.2.1
npm http GET https://registry.npmjs.org/mongodb/1.2.11
npm http GET https://registry.npmjs.org/ms/0.1.0
npm http GET https://registry.npmjs.org/sliced/0.0.3
npm http GET https://registry.npmjs.org/muri/0.3.0
npm http GET https://registry.npmjs.org/mpromise/0.2.0
npm http GET https://registry.npmjs.org/mpath/0.1.1
npm http 200 https://registry.npmjs.org/ms/0.1.0
npm http GET https://registry.npmjs.org/ms/-/ms-0.1.0.tgz
npm http 200 https://registry.npmjs.org/sliced/0.0.3
npm http 200 https://registry.npmjs.org/hooks/0.2.1
npm http 200 https://registry.npmjs.org/muri/0.3.0
npm http GET https://registry.npmjs.org/sliced/-/sliced-0.0.3.tgz
npm http GET https://registry.npmjs.org/hooks/-/hooks-0.2.1.tgz
npm http GET https://registry.npmjs.org/muri/-/muri-0.3.0.tgz
npm http 200 https://registry.npmjs.org/ms/-/ms-0.1.0.tgz
npm http 200 https://registry.npmjs.org/mpromise/0.2.0
npm http GET https://registry.npmjs.org/mpromise/-/mpromise-0.2.0.tgz
npm http 200 https://registry.npmjs.org/mongodb/1.2.11
npm http 200 https://registry.npmjs.org/mpath/0.1.1
npm http GET https://registry.npmjs.org/mongodb/-/mongodb-1.2.11.tgz
npm http 200 https://registry.npmjs.org/hooks/-/hooks-0.2.1.tgz
npm http GET https://registry.npmjs.org/mpath/-/mpath-0.1.1.tgz
npm http 200 https://registry.npmjs.org/muri/-/muri-0.3.0.tgz
npm http 200 https://registry.npmjs.org/mpromise/-/mpromise-0.2.0.tgz
npm http 200 https://registry.npmjs.org/mongodb/-/mongodb-1.2.11.tgz
npm http 200 https://registry.npmjs.org/mpath/-/mpath-0.1.1.tgz
npm http 200 https://registry.npmjs.org/sliced/-/sliced-0.0.3.tgz
npm ERR! error installing mongoose#3.6.0rc0
npm ERR! error rolling back mongoose#3.6.0rc0 Error: UNKNOWN, unknown error '/home/vlad/node_modules/mongoose'
npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: mongodb#1.2.11
npm ERR! Required: {"node":">=0.6.19"}
npm ERR! Actual: {"npm":"1.1.0-3","node":"0.6.9"}
npm ERR!
npm ERR! System Linux 3.2.0-4-486
npm ERR! command "node" "/usr/local/bin/npm" "install" "mongoose"
npm ERR! cwd /home/vlad
npm ERR! node -v v0.6.9
npm ERR! npm -v 1.1.0-3
npm ERR! code ENOTSUP
npm ERR! message Unsupported
npm ERR! errno {}
npm http GET https://registry.npmjs.org/sliced/0.0.4
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/vlad/npm-debug.log
npm not ok
Can someone suggest me how I can solve it?
The error tells you what the problem is:
npm ERR! Not compatible with your version of node/npm: mongodb#1.2.11
npm ERR! Required: {"node":">=0.6.19"}
npm ERR! Actual: {"npm":"1.1.0-3","node":"0.6.9"}
You have a version 0.6.9 of node installed, but the dependency package mongodb requires a version greater or equal to 0.6.19. You can upgrade by doing:
sudo npm install n -g
I am trying to install express on my node installation using npm. I am doing a local installation. I am using Ubuntu 11.10 in my office environment (i.e. other than a few well known ports everything else would be blocked). I am invoking "npm install" from package.json as a user (not 'sudo' ing). The installation is failing with the following logs.
Comments/solution would be appreciated.
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/connect/2.7.2
npm http GET http://registry.npmjs.org/mkdirp/0.3.3
npm http GET http://registry.npmjs.org/commander/0.6.1
npm http GET http://registry.npmjs.org/cookie/0.0.5
npm http GET http://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET http://registry.npmjs.org/send/0.1.0
npm http GET http://registry.npmjs.org/cookie-signature/0.0.1
npm http GET http://registry.npmjs.org/methods/0.0.1
npm http GET http://registry.npmjs.org/fresh/0.1.0
npm http GET http://registry.npmjs.org/debug
npm http GET http://registry.npmjs.org/connect/2.7.2
npm http GET http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/cookie/0.0.5
npm http GET http://registry.npmjs.org/commander/0.6.1
npm http GET http://registry.npmjs.org/mkdirp/0.3.3
npm http GET http://registry.npmjs.org/send/0.1.0
npm http GET http://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET http://registry.npmjs.org/fresh/0.1.0
npm http GET http://registry.npmjs.org/cookie-signature/0.0.1
npm http GET http://registry.npmjs.org/methods/0.0.1
npm http GET http://registry.npmjs.org/debug
npm http GET http://registry.npmjs.org/connect/2.7.2
npm http GET http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/mkdirp/0.3.3
npm http GET http://registry.npmjs.org/commander/0.6.1
npm http GET http://registry.npmjs.org/cookie/0.0.5
npm http GET http://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET http://registry.npmjs.org/send/0.1.0
npm http GET http://registry.npmjs.org/cookie-signature/0.0.1
npm http GET http://registry.npmjs.org/methods/0.0.1
npm http GET http://registry.npmjs.org/fresh/0.1.0
npm http GET http://registry.npmjs.org/debug
npm http GET http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! Error: Parse Error
npm ERR! at Socket.socketOnData (http.js:1485:20)
npm ERR! at TCP.onread (net.js:404:27)
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 Linux 3.0.0-20-generic
npm ERR! command "nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nvbalaji/nodejs/hb
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.12
npm ERR! code HPE_INVALID_CONSTANT
npm WARN package.json methods#0.0.1 No README.md file found!
npm http GET http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! fetch failed http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http GET http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http GET http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http GET http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http GET http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! fetch failed http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! fetch failed http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/nvbalaji/nodejs/hb/npm-debug.log
npm ERR! not ok code 0
maybe some processes during global installation
npm install express -g / npm install -g express
needs admin permissions for writing files in system folders. try not global installation npm install express.
This is how i've worked around it on my installs:
Create a new file called node
:\>gedit /usr/local/bin/node
Contents:
#!/bin/bash
exec /nodejs "$#"
:\>sudo chmod +x /usr/local/bin/node
Try your NPM install again.