installing mongoose on debian - node.js

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

Related

Install Less on python cartridge Openshift

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

npm downloading phonegap multiple error

i'm trying to download phonegap with npm from command line, i get always error with node version:4.0.0 and 4.1.0 specifically:
this
i'm on company proxy and i can't change connection.
now changing version of node to: 0.10.0 i get those errors:
npm ERR! Error: ENOENT, open 'C:\Documents and Settings\gcappella\node_modules\p
honegap\node_modules\prompt\node_modules\utile\node_modules\mkdirp\test\return_s
ync.js'
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 Windows_NT 5.1.2600
npm ERR! command "C:\\Programmi\\nodejs\\\\node.exe" "C:\\Programmi\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "phonegap"
npm ERR! cwd C:\Documents and Settings\gcappella
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path C:\Documents and Settings\gcappella\node_modules\phonegap\node_mod
ules\prompt\node_modules\utile\node_modules\mkdirp\test\return_sync.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\prompt\node_modules\utile\node_modul
es\i\test\inflector'
npm ERR! error rolling back utile#0.2.1 { [Error: ENOTEMPTY, rmdir 'C:\Document
s and Settings\gcappella\node_modules\phonegap\node_modules\prompt\node_modules\
utile\node_modules\i\test\inflector']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\prompt\\node_modules\\utile\\node_modules\\i\\
test\\inflector' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\prompt\node_modules\utile\node_modul
es\i\test\inflector'
npm ERR! error rolling back prompt#0.2.11 { [Error: ENOTEMPTY, rmdir 'C:\Docume
nts and Settings\gcappella\node_modules\phonegap\node_modules\prompt\node_module
s\utile\node_modules\i\test\inflector']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\prompt\\node_modules\\utile\\node_modules\\i\\
test\\inflector' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\prompt\node_modules\utile\node_modul
es\ncp\test'
npm ERR! error rolling back ncp#0.4.2 { [Error: ENOTEMPTY, rmdir 'C:\Documents
and Settings\gcappella\node_modules\phonegap\node_modules\prompt\node_modules\ut
ile\node_modules\ncp\test']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\prompt\\node_modules\\utile\\node_modules\\ncp
\\test' }
npm ERR! Error: ENOENT, lstat 'C:\Documents and Settings\gcappella\node_modules\
phonegap\node_modules\prompt\node_modules\utile\node_modules\i\test\inflector\me
thods-test.js'
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 Windows_NT 5.1.2600
npm ERR! command "C:\\Programmi\\nodejs\\\\node.exe" "C:\\Programmi\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "phonegap"
npm ERR! cwd C:\Documents and Settings\gcappella
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path C:\Documents and Settings\gcappella\node_modules\phonegap\node_mod
ules\prompt\node_modules\utile\node_modules\i\test\inflector\methods-test.js
npm ERR! fstream_path C:\Documents and Settings\gcappella\node_modules\phonegap\
node_modules\prompt\node_modules\utile\node_modules\i\test\inflector\methods-tes
t.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Programmi\nodejs\node_modules\npm\node_modules\fstream
\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:93:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\connect-phonegap\res\middleware\cord
ova'
npm ERR! error rolling back phonegap#5.3.1+cordova.5.3.1 { [Error: ENOTEMPTY, r
mdir 'C:\Documents and Settings\gcappella\node_modules\phonegap\node_modules\con
nect-phonegap\res\middleware\cordova']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\connect-phonegap\\res\\middleware\\cordova' }
npm ERR! Error: No compatible version found: glob#'^5.0.14'
npm ERR! Valid install targets:
npm ERR! ["1.1.0","2.0.9","2.0.8","2.0.7","2.1.0","3.0.0","3.0.1","3.1.0","3.1.1
","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.9","3.1.10","3.1.11","3.1
.12","3.1.13","3.1.14","3.1.15","3.1.16","3.1.17","3.1.18","3.1.19","3.1.20","3.
1.21","3.2.0","3.2.1","3.2.3","3.2.4","3.2.5","3.2.6","3.2.7","3.2.8","3.2.9","3
.2.10","3.2.11","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.1.2-b
eta","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.2.0","4.2.1","4.2.2","4.3.0","4.
3.1","4.3.2","4.3.3","4.3.4","4.3.5","4.4.0","4.4.2","4.5.0","5.0.0","4.5.1","5.
0.1","4.5.2","5.0.2","4.5.3","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.9","5.
0.10","5.0.11","5.0.12","5.0.13","5.0.14"]
npm ERR! at installTargetsError (C:\Programmi\nodejs\node_modules\npm\lib\ca
che.js:682:10)
npm ERR! at C:\Programmi\nodejs\node_modules\npm\lib\cache.js:597:10
npm ERR! at saved (C:\Programmi\nodejs\node_modules\npm\node_modules\npm-reg
istry-client\lib\get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:93:15)
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 Windows_NT 5.1.2600
npm ERR! command "C:\\Programmi\\nodejs\\\\node.exe" "C:\\Programmi\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "phonegap"
npm ERR! cwd C:\Documents and Settings\gcappella
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm http GET http://registry.npmjs.org/wordwrap
npm http GET http://registry.npmjs.org/request
npm http 304 http://registry.npmjs.org/request
npm http 200 http://registry.npmjs.org/wordwrap
npm http GET http://registry.npmjs.org/request/-/request-2.11.4.tgz
npm http 200 http://registry.npmjs.org/request/-/request-2.11.4.tgz
npm http GET http://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz
npm http 200 http://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz
npm http GET http://registry.npmjs.org/abbrev
npm http 200 http://registry.npmjs.org/abbrev
npm http GET http://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz
npm http 200 http://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz
npm http GET http://registry.npmjs.org/shelljs/0.3.0
npm http GET http://registry.npmjs.org/semver
npm http GET http://registry.npmjs.org/cordova-js/4.1.1
npm http GET http://registry.npmjs.org/tar/1.0.2
npm http GET http://registry.npmjs.org/cordova-registry-mapper
npm http GET http://registry.npmjs.org/unorm/1.3.3
npm http GET http://registry.npmjs.org/cordova-serve
npm http GET http://registry.npmjs.org/valid-identifier/0.0.1
npm http GET http://registry.npmjs.org/dep-graph/1.1.0
npm http GET http://registry.npmjs.org/osenv/0.1.0
npm http GET http://registry.npmjs.org/npm
npm http GET http://registry.npmjs.org/xcode/0.8.0
npm http GET http://registry.npmjs.org/elementtree/0.1.6
npm http GET http://registry.npmjs.org/npmconf
npm http GET http://registry.npmjs.org/request/2.47.0
npm http GET http://registry.npmjs.org/init-package-json
npm http GET http://registry.npmjs.org/properties-parser/0.2.3
npm http GET http://registry.npmjs.org/rc/0.5.2
npm http GET http://registry.npmjs.org/glob/4.0.6
npm http GET http://registry.npmjs.org/plist/1.1.0
npm http GET http://registry.npmjs.org/aliasify
npm http GET http://registry.npmjs.org/bplist-parser/0.0.6
npm http GET http://registry.npmjs.org/cordova-app-hello-world/3.9.0
npm http 200 http://registry.npmjs.org/cordova-registry-mapper
npm http 200 http://registry.npmjs.org/shelljs/0.3.0
npm http 200 http://registry.npmjs.org/cordova-js/4.1.1
npm http GET http://registry.npmjs.org/cordova-registry-mapper/-/cordova-registr
y-mapper-1.1.11.tgz
npm http 200 http://registry.npmjs.org/cordova-serve
npm http 200 http://registry.npmjs.org/semver
npm http 200 http://registry.npmjs.org/tar/1.0.2
npm http GET http://registry.npmjs.org/cordova-js/-/cordova-js-4.1.1.tgz
npm http GET http://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz
npm http 200 http://registry.npmjs.org/valid-identifier/0.0.1
npm http 200 http://registry.npmjs.org/dep-graph/1.1.0
npm http GET http://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm http 200 http://registry.npmjs.org/unorm/1.3.3
npm http 200 http://registry.npmjs.org/npmconf
npm http GET http://registry.npmjs.org/valid-identifier/-/valid-identifier-0.0.1
.tgz
npm http GET http://registry.npmjs.org/dep-graph/-/dep-graph-1.1.0.tgz
npm http GET http://registry.npmjs.org/unorm/-/unorm-1.3.3.tgz
npm http 200 http://registry.npmjs.org/osenv/0.1.0
npm http 200 http://registry.npmjs.org/request/2.47.0
npm http 200 http://registry.npmjs.org/xcode/0.8.0
npm http 200 http://registry.npmjs.org/init-package-json
npm http GET http://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm http GET http://registry.npmjs.org/request/-/request-2.47.0.tgz
npm http 200 http://registry.npmjs.org/elementtree/0.1.6
npm http GET http://registry.npmjs.org/xcode/-/xcode-0.8.0.tgz
npm http 200 http://registry.npmjs.org/rc/0.5.2
npm http 200 http://registry.npmjs.org/npm
npm http 200 http://registry.npmjs.org/aliasify
npm http 200 http://registry.npmjs.org/plist/1.1.0
npm http 200 http://registry.npmjs.org/glob/4.0.6
npm http 200 http://registry.npmjs.org/properties-parser/0.2.3
npm http GET http://registry.npmjs.org/elementtree/-/elementtree-0.1.6.tgz
npm http 200 http://registry.npmjs.org/cordova-registry-mapper/-/cordova-registr
y-mapper-1.1.11.tgz
npm http 200 http://registry.npmjs.org/cordova-js/-/cordova-js-4.1.1.tgz
npm http 200 http://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm http 200 http://registry.npmjs.org/cordova-app-hello-world/3.9.0
npm http 200 http://registry.npmjs.org/unorm/-/unorm-1.3.3.tgz
npm http 200 http://registry.npmjs.org/valid-identifier/-/valid-identifier-0.0.1
.tgz
npm http 200 http://registry.npmjs.org/dep-graph/-/dep-graph-1.1.0.tgz
npm http 200 http://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm http 200 http://registry.npmjs.org/xcode/-/xcode-0.8.0.tgz
npm http 200 http://registry.npmjs.org/request/-/request-2.47.0.tgz
npm http 200 http://registry.npmjs.org/elementtree/-/elementtree-0.1.6.tgz
npm http GET http://registry.npmjs.org/properties-parser/-/properties-parser-0.2
.3.tgz
npm http GET http://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm http GET http://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm http 200 http://registry.npmjs.org/properties-parser/-/properties-parser-0.2
.3.tgz
npm http 200 http://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm http 200 http://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm http 200 http://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz
npm http GET http://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm http 200 http://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm http 200 http://registry.npmjs.org/bplist-parser/0.0.6
npm http GET http://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hel
lo-world-3.9.0.tgz
npm http 200 http://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hel
lo-world-3.9.0.tgz
npm http GET http://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm http 200 http://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Documents and Settings\gcappella\npm-debug.log
npm ERR! not ok code 0
anyone can help a poor guy?
are you sure this port 8080 is available ??
try to change port number, maybe it will help you bro...
npm#1.2.14 is extremely old and has not been supported for years. The crux of your issue is that such an old version of npm has no idea how to interpret the ^ semver operator you see here:
npm ERR! Error: No compatible version found: glob#'^5.0.14'
Hence an error is thrown. The solution is to simply upgrade. I would recommend upgrading both Node.js and npm, since Node.js v0.10.0 is also very old and by using it you are subject to a handful of security vulnerabilities that have been fixed in the years since v0.10.0 was released.

Unable to install node.js' serialport npm package on Raspberry Pi2

I want the Raspberry Pi 2 to read data from another device through the Serial port. However, I cannot install the npm's serialport package. I followed the instructions about Raspbian on https://www.npmjs.com/package/serialport. I was able to install v0.10.12 of Node and v1.2.32 of npm. But when I try installing the serialport module I get the following in the command line:
npm http GET https://registry.npmjs.org/serialport
npm http 304 https://registry.npmjs.org/serialport
npm WARN package.json serialport#1.7.4 No readme data.
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/async/0.9.0
npm http GET https://registry.npmjs.org/sf/0.1.7
npm http GET https://registry.npmjs.org/bindings/1.2.1
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/sf/0.1.7
npm http 304 https://registry.npmjs.org/bindings/1.2.1
npm WARN package.json nan#1.8.4 No readme data.
npm WARN package.json optimist#0.6.1 No readme data.
npm http 304 https://registry.npmjs.org/async/0.9.0
npm ERR! Error: No compatible version found: debug#'^2.1.1'
npm ERR! Valid install targets:
npm ERR! ["0.0.1","0.1.0","0.2.0","0.3.0","0.4.0","0.4.1","0.5.0","0.6.0","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.8.0","0.8.1","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","2.0.0","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0"]
npm ERR! at installTargetsError (/opt/node/lib/node_modules/npm/lib/cache.js:719:10)
npm ERR! at /opt/node/lib/node_modules/npm/lib/cache.js:641:10
npm ERR! at saved (/opt/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:107:15)
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.18.11-v7+
npm ERR! command "/opt/node/bin/node" "/opt/node/bin/npm" "install" "serialport"
npm ERR! cwd /home/pi
npm ERR! node -v v0.10.12
npm ERR! npm -v 1.2.32
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/npm-debug.log
npm ERR! not ok code 0
What is the problem?
Your version of npm does not support the caret (^) version specifier, so you should upgrade npm. You will probably also want to upgrade node too.

Error installing derby#0.3.13

I tried installing derbyjs and I got the following error:
alex#alex-K43U:~/derby$ npm install -g derby
npm http GET https://registry.npmjs.org/derby
npm http 200 https://registry.npmjs.org/derby
npm http GET https://registry.npmjs.org/derby/-/derby-0.3.13.tgz
npm http 200 https://registry.npmjs.org/derby/-/derby-0.3.13.tgz
npm http GET https://registry.npmjs.org/dom-shim
npm http GET https://registry.npmjs.org/html-util
npm http GET https://registry.npmjs.org/tracks
npm http GET https://registry.npmjs.org/racer/0.3.13
npm http GET https://registry.npmjs.org/chokidar
npm http GET https://registry.npmjs.org/less
npm http GET https://registry.npmjs.org/up
npm http GET https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/nib
npm http 200 https://registry.npmjs.org/dom-shim
npm http GET https://registry.npmjs.org/dom-shim/-/dom-shim-0.1.1.tgz
npm http 200 https://registry.npmjs.org/tracks
npm http GET https://registry.npmjs.org/tracks/-/tracks-0.1.8.tgz
npm http 200 https://registry.npmjs.org/html-util
npm http GET https://registry.npmjs.org/html-util/-/html-util-0.1.3.tgz
npm http 200 https://registry.npmjs.org/racer/0.3.13
npm http 200 https://registry.npmjs.org/chokidar
npm ERR! error installing derby#0.3.13
npm http GET https://registry.npmjs.org/racer/-/racer-0.3.13.tgz
npm ERR! Error: No compatible version found: chokidar#'>=0.2.6'
npm ERR! No valid targets found.
npm ERR! Perhaps not compatible with your version of node?
npm ERR! at installTargetsError (/home/alex/nvm/v0.6.7/lib/node_modules/npm/lib/cache.js:488:10)
npm ERR! at next_ (/home/alex/nvm/v0.6.7/lib/node_modules/npm/lib/cache.js:438:17)
npm ERR! at next (/home/alex/nvm/v0.6.7/lib/node_modules/npm/lib/cache.js:415:44)
npm ERR! at /home/alex/nvm/v0.6.7/lib/node_modules/npm/lib/cache.js:408:5
npm ERR! at saved (/home/alex/nvm/v0.6.7/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:147:7)
npm ERR! at Object.oncomplete (/home/alex/nvm/v0.6.7/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:231: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.0.0-24-generic
npm ERR! command "node" "/home/alex/nvm/v0.6.7/bin/npm" "install" "-g" "derby"
npm ERR! cwd /home/alex/derby
npm ERR! node -v v0.6.7
npm ERR! npm -v 1.1.0-3
npm ERR! message No compatible version found: chokidar#'>=0.2.6'
npm ERR! message No valid targets found.
npm ERR! message Perhaps not compatible with your version of node?
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/alex/derby/npm-debug.log
npm not ok
I have no idea how to fix this. Any suggestions?
Looking at chokidar's package.json file for versions >=0.2.6 tells me that it requires node.js version 0.6.10 or newer. You are trying to install it for node 0.6.7.
Furthermore I'd suggest using Derby with node 0.8.x. At least I have had no installation issues with Derby on node 0.8.x.

Socket.io installation on Win 7 fails

I've installed NodeJs and tried to install Socket.io
Socket.io installation fails consecutively. I've tried several differend NodeJS versions (0.6.15,0.6.16,0.6.17,0.7.8). All fail to install socket.io.
The full log can be found on pastebin.
Console log is:
C:\Program Files (x86)\nodejs>npm install socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/socket.io-client/0.9.6
npm http GET https://registry.npmjs.org/redis/0.6.7
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.6
npm http 304 https://registry.npmjs.org/redis/0.6.7
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http GET https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/zeparser/0.0.5
npm http GET https://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
npm http 304 https://registry.npmjs.org/commander
npm http 304 https://registry.npmjs.org/options
> ws#0.4.14 install C:\Program Files (x86)\nodejs\node_modules\socket.io\node_mo
dules\socket.io-client\node_modules\ws
> node install.js
'node' is not recognized as an internal or external command,
operable program or batch file.
npm http 200 https://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
npm ERR! ws#0.4.14 install: `node install.js`
npm ERR! `cmd "/c" "node install.js"` failed with 1
npm ERR!
npm ERR! Failed at the ws#0.4.14 install script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls ws
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "socket.io"
npm ERR! cwd C:\Program Files (x86)\nodejs
npm ERR! node -v v0.7.8
npm ERR! npm -v 1.1.18
npm ERR! code ELIFECYCLE
npm ERR! message ws#0.4.14 install: `node install.js`
npm ERR! message `cmd "/c" "node install.js"` failed with 1
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Program Files (x86)\nodejs\npm-debug.log
npm not ok
Is there a workaround? How can I install Socket.IO on Windows 7 x64?
(Works for me with 0.6.15, win7 x64)
I'm not sure how you installed node, but it seems like you don't have it in your path.
Try editing your PATH variable and add C:\Program Files (x86)\nodejs\
Also, why are you installing in Program Files. This should be installed in your project folder. If you want to install a package globally you should use npm -g, but socket.io is not meant to be installed globally.
Problem solved on Node.js v0.8.3

Resources