Install Less on python cartridge Openshift - node.js

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

Related

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.

install gulp browserify gives error always

Im trying to install gulp-browserify with this command:
npm install gulp-browserify --save-dev
I already installed many other packages successfully like
gulp-autoprefixer
gulp-concat
gulp-minify-css
gulp-sass
gulp-uglify
all of those installations worked great, here is how my package.json file looks like
{
"devDependencies": {
"gulp-autoprefixer": "0.0.8",
"gulp-sass": "~0.7.2",
"gulp": "~3.8.5",
"gulp-minify-css": "~0.3.6",
"gulp-concat": "~2.2.0",
"gulp-uglify": "~0.3.1"
}
}
and here is the errors I get when installing browserify
http GET https://registry.npmjs.org/uglify-to-browserify
npm http 200 https://registry.npmjs.org/inline-source-map
npm http GET https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.3.0.tgz
npm ERR! Error: invalid version: 3001.0001.0000-dev-harmony-fb
npm ERR! at validVersion (/usr/lib/nodejs/read-package-json/read-json.js:573:40)
npm ERR! at final (/usr/lib/nodejs/read-package-json/read-json.js:323:23)
npm ERR! at /usr/lib/nodejs/read-package-json/read-json.js:139:33
npm ERR! at cb (/usr/lib/nodejs/slide/lib/async-map.js:48:11)
npm ERR! at /usr/lib/nodejs/read-package-json/read-json.js:251:40
npm ERR! at fs.js:268:14
npm ERR! at /usr/lib/nodejs/graceful-fs/graceful-fs.js:103:5
npm ERR! at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /media/tzookb/dynamic/www/meeters/npm-debug.log npm
npm ERR! System Linux 3.11.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp-browserify" "--save-dev"
npm ERR! cwd /media/tzookb/dynamic/www/meeters
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm http 200 https://registry.npmjs.org/escodegen
npm http GET https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz
npm http 200 https://registry.npmjs.org/callsite
npm http GET https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz
npm http 200 https://registry.npmjs.org/resolve/-/resolve-0.3.1.tgz
npm http 200 https://registry.npmjs.org/astw
npm http GET https://registry.npmjs.org/astw/-/astw-1.1.0.tgz
npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-2.2.5.tgz
npm http 200 https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.4.tgz
npm http 200 https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/source-map/-/source-map-0.1.34.tgz
npm http 200 https://registry.npmjs.org/source-map
npm http 200 https://registry.npmjs.org/uglify-to-browserify
npm http GET https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz
npm http 200 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 200 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz
npm http 200 https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.3.0.tgz
npm http 200 https://registry.npmjs.org/escodegen/-/escodegen-1.1.0.tgz
npm http 200 https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz
npm http 200 https://registry.npmjs.org/astw/-/astw-1.1.0.tgz
npm http 200 https://registry.npmjs.org/source-map/-/source-map-0.1.34.tgz
npm http 200 https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz
npm http 200 https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 200 https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz
npm http GET https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz
npm http 200 https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz
npm http GET https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/amdefine
npm http 200 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz
npm http 200 https://registry.npmjs.org/amdefine
npm http GET https://registry.npmjs.org/amdefine/-/amdefine-0.1.0.tgz
npm http 200 https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz
npm http 200 https://registry.npmjs.org/amdefine/-/amdefine-0.1.0.tgz
npm ERR! Error: ENOENT, lstat '/media/tzookb/dynamic/www/meeters/node_modules/gulp-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /media/tzookb/dynamic/www/meeters/npm-debug.log npm
npm ERR! System Linux 3.11.0-24-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "gulp-browserify" "--save-dev"
npm ERR! cwd /media/tzookb/dynamic/www/meeters
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /media/tzookb/dynamic/www/meeters/node_modules/gulp-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js
npm ERR! fstream_path /media/tzookb/dynamic/www/meeters/node_modules/gulp-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/node_modules/amdefine/amdefine.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /media/tzookb/dynamic/www/meeters/npm-debug.log
npm ERR! not ok code 0
Which version of node are you running? The kind of error that you are having normally show up when you are trying to install newer modules on an older version of node.
1 - rm -rf node_modules
2 - update node to the latest version
2.1 - sudo npm cache clean -f
2.2 - sudo npm install -g n
2.3 - sudo n stable
3 - try to install gulp-browsify again

installing mongoose on debian

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

How to install serialport with node v0.9.11-pre

Im trying to install serial port using the command "sudo npm install serialport".
Im running raspbian, I've updated/upgraded using apt get.
I installed node using the instructions in post 2 here
This is the error I'm getting:
pi#raspberrypi ~/Programming/node $ sudo npm install serialport
npm http GET https://registry.npmjs.org/serialport
npm http 304 https://registry.npmjs.org/serialport
npm http GET https://registry.npmjs.org/bindings/0.3.0
npm http GET https://registry.npmjs.org/async/0.1.18
npm http GET https://registry.npmjs.org/sf/0.1.3
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/node-gyp/0.6.2
npm http 304 https://registry.npmjs.org/async/0.1.18
npm http 304 https://registry.npmjs.org/sf/0.1.3
npm http 304 https://registry.npmjs.org/bindings/0.3.0
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/node-gyp/0.6.2
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/npmlog
npm http GET https://registry.npmjs.org/osenv
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/nopt
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/osenv
npm http 304 https://registry.npmjs.org/tar
npm http 304 https://registry.npmjs.org/which
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/npmlog
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/fstream
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/mkdirp
npm WARN engine tar#0.1.16: wanted: {"node":"~0.5.9 || 0.6 || 0.7 || 0.8"} (current: {"node":"v0.9.11-pre","npm":"1.2.12"})
npm http GET https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/abbrev
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/block-stream
npm http 304 https://registry.npmjs.org/block-stream
> serialport#1.0.8 install /home/pi/node_modules/serialport
> node-gyp rebuild
gyp ERR! configure error
gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:69:16)
gyp ERR! stack at Object.self.commands.(anonymous function) [as install] (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/node-gyp.js:56:37)
gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:223:20)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:105:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:577:7)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:97:17)
gyp ERR! stack at maybeClose (child_process.js:677:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:744:5)
gyp ERR! System Linux 3.6.11+
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/node_modules/serialport
gyp ERR! node -v v0.9.11-pre
gyp ERR! node-gyp -v v0.8.4
gyp ERR! not ok
npm ERR! serialport#1.0.8 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the serialport#1.0.8 install script.
npm ERR! This is most likely a problem with the serialport package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls serialport
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.6.11+
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "serialport"
npm ERR! cwd /home/pi/Programming/node
npm ERR! node -v v0.9.11-pre
npm ERR! npm -v 1.2.12
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/Programming/node/npm-debug.log
npm ERR! not ok code 0
Clearly my node version is too up to date, how can i get around this?
Can anyone help me get this working?
Thanks
Solved it by removing this version and then installing version 0.8.16.
Thanks
I added the same problem, in my case it was a wrong dependency of a package (serialport forced to "1.0.x"). I add to change package.json of the old package to :
{
"name": "oldPackage",
"dependencies": {
"serialport": "1.1.x"
}
}

Resources