npm install soap errors - node.js

I just came across milewise/node-soap and when I run npm install soap, it fails with the following errors:
sudo npm install soap
npm http GET https://registry.npmjs.org/soap
npm http 304 https://registry.npmjs.org/soap
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/form-data
> node-expat#2.0.0 install /Users/rrazavipour-lp/node_modules/soap/node_modules/node-expat
> node-gyp rebuild
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
npm http GET https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/rrazavipour-lp/node_modules/soap/node_modules/node-expat
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! not ok
unbuild node-expat#2.0.0
unbuild soap#0.2.7
npm ERR! weird error 1
npm http 200 https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
npm http 200 https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
unbuild request#2.27.0
npm http 200 https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm ERR! not ok code 0
Rezas-MacBook-Pro:node_modules rrazavipour-lp$
What is causing the failure?

Yes, it looks like you are missing make on your system. Have you installed xcode command line tools?
That should install make and other useful dev tools for you.
Here is another SO question related to installing xcode CLI tools :: Xcode 4.4 and later install Command Line Tools

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 not installing anything on a certain windows machine

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

Not able to install bower using npm

I have Node.js installed on my system (v0.10.26) and I am trying to install the bower package manager. But I am not able to install. I keep getting an error. I placed my npm-debug.txt with jsfiddle for your reference.
Here is the error that I am getting:
D:\mySite>npm install bower
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/bower
npm http GET https://registry.npmjs.org/insight
npm http GET https://registry.npmjs.org/is-root
npm http GET https://registry.npmjs.org/cardinal
npm http GET https://registry.npmjs.org/bower-registry-client
npm http GET https://registry.npmjs.org/chmodr
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/fstream-ignore
npm http GET https://registry.npmjs.org/junk
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/decompress-zip
npm http GET https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/opn
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/osenv
npm http GET https://registry.npmjs.org/handlebars
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/promptly
npm http GET https://registry.npmjs.org/p-throttler
npm http GET https://registry.npmjs.org/request-progress
npm http GET https://registry.npmjs.org/retry
npm http GET https://registry.npmjs.org/lockfile
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/stringify-object
npm http GET https://registry.npmjs.org/shell-quote
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/tmp
npm http GET https://registry.npmjs.org/update-notifier
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/bower-config
npm http GET https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/archy
npm http GET https://registry.npmjs.org/bower-endpoint-parser
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/bower-json
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/bower-logger
npm http GET https://registry.npmjs.org/cardinal
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/bower-config
npm http GET https://registry.npmjs.org/promptly
npm http GET https://registry.npmjs.org/update-notifier
npm http GET https://registry.npmjs.org/chmodr
npm http GET https://registry.npmjs.org/archy
npm http GET https://registry.npmjs.org/lockfile
npm http GET https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/is-root
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/bower-json
npm http GET https://registry.npmjs.org/handlebars
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/opn
npm http GET https://registry.npmjs.org/shell-quote
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/tmp
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/request-progress
npm http GET https://registry.npmjs.org/osenv
npm http GET https://registry.npmjs.org/p-throttler
npm http GET https://registry.npmjs.org/stringify-object
npm http GET https://registry.npmjs.org/bower-endpoint-parser
npm http GET https://registry.npmjs.org/junk
npm http GET https://registry.npmjs.org/retry
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/bower-logger
npm http GET https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/bower-registry-client
npm http GET https://registry.npmjs.org/decompress-zip
npm http GET https://registry.npmjs.org/insight
npm http GET https://registry.npmjs.org/fstream-ignore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/cardinal
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/bower-config
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/lockfile
npm http GET https://registry.npmjs.org/promptly
npm http GET https://registry.npmjs.org/chmodr
npm http GET https://registry.npmjs.org/mout
npm http GET https://registry.npmjs.org/update-notifier
npm http GET https://registry.npmjs.org/handlebars
npm http GET https://registry.npmjs.org/which
npm http GET https://registry.npmjs.org/shell-quote
npm http GET https://registry.npmjs.org/inquirer
npm http GET https://registry.npmjs.org/osenv
npm http GET https://registry.npmjs.org/tmp
npm http GET https://registry.npmjs.org/opn
npm http GET https://registry.npmjs.org/p-throttler
npm http GET https://registry.npmjs.org/bower-logger
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/bower-json
npm http GET https://registry.npmjs.org/abbrev
npm http GET https://registry.npmjs.org/bower-endpoint-parser
npm http GET https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/tar
npm http GET https://registry.npmjs.org/request-progress
npm http GET https://registry.npmjs.org/stringify-object
npm http GET https://registry.npmjs.org/junk
npm http GET https://registry.npmjs.org/retry
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/semver
npm ERR! Failed to parse json
npm ERR! Unexpected token
npm ERR! File: C:\Users\mb112830\AppData\Roaming\npm-cache\update-noti
\package\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower"
npm ERR! cwd D:\mySite
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! file C:\Users\mb112830\AppData\Roaming\npm-cache\update-notif
package\package.json
npm ERR! code EJSONPARSE
npm http GET https://registry.npmjs.org/is-root
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/archy
npm http GET https://registry.npmjs.org/decompress-zip
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/bower-registry-client
npm http GET https://registry.npmjs.org/insight
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/fstream-ignore
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\mySite\npm-debug.log
npm ERR! not ok code 0
Please find the jsfiddle link for log here.
I also cleaned my npm cache and tried again, but this time I got this error:
npm ERR! network tunneling socket could not be established, cause=Parse Error
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower"
npm ERR! cwd D:\bower
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ECONNRESET
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\bower\npm-debug.log
npm ERR! not ok code 0
How can I fix this?
The is you have to specify the path to which bower should be installed. The path should be added either in your zshrc file or your bashrc file like this.
export PATH =/usr/local/lib/node_modules/:$PATH

How to install prozess on a ubuntu machine using npm?

On the command npm install prozess it giving following error:
root#ubuntu:/usr/local/kafka/NodeKafka# sudo npm install prozess
npm http GET https://registry.npmjs.org/prozess
npm http 200 https://registry.npmjs.org/prozess
npm http GET https://registry.npmjs.org/prozess/-/prozess-0.4.0.tgz
npm http 200 https://registry.npmjs.org/prozess/-/prozess-0.4.0.tgz
npm http GET https://registry.npmjs.org/underscore/1.3.3
npm http GET https://registry.npmjs.org/buffermaker/0.0.10
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/binary/0.3.0
npm http GET https://registry.npmjs.org/crc32/0.2.2
npm http GET https://registry.npmjs.org/bignum/0.6.0
npm http 304 https://registry.npmjs.org/underscore/1.3.3
npm http 304 https://registry.npmjs.org/binary/0.3.0
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.3.3.tgz
npm http GET https://registry.npmjs.org/binary/-/binary-0.3.0.tgz
npm http 304 https://registry.npmjs.org/buffermaker/0.0.10
npm http GET https://registry.npmjs.org/buffermaker/-/buffermaker-0.0.10.tgz
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 304 https://registry.npmjs.org/crc32/0.2.2
npm http GET https://registry.npmjs.org/crc32/-/crc32-0.2.2.tgz
npm http 304 https://registry.npmjs.org/bignum/0.6.0
npm http 200 https://registry.npmjs.org/binary/-/binary-0.3.0.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.3.3.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/crc32/-/crc32-0.2.2.tgz
npm http 200 https://registry.npmjs.org/buffermaker/-/buffermaker-0.0.10.tgz
> bignum#0.6.0 install /usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum
> node-gyp configure build
npm http GET https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/chainsaw
make: Entering directory `/usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum/build'
CXX(target) Release/obj.target/bignum/bignum.o
make: g++: Command not found
make: *** [Release/obj.target/bignum/bignum.o] Error 127
make: Leaving directory `/usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.2.0-49-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build"
gyp ERR! cwd /usr/local/kafka/NodeKafka/node_modules/prozess/node_modules/bignum
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! not ok
unbuild bignum#0.6.0
unbuild prozess#0.4.0
npm ERR! weird error 1
npm http 304 https://registry.npmjs.org/chainsaw
npm http 304 https://registry.npmjs.org/buffers
npm http GET https://registry.npmjs.org/traverse
npm http 304 https://registry.npmjs.org/traverse
npm ERR! not ok code 0
Does anyone know what is the dependency of this (bignum) and the way to install prozess?

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