Unable to install Express using npm in Ubuntu 11.10 - node.js

I am trying to install express on my node installation using npm. I am doing a local installation. I am using Ubuntu 11.10 in my office environment (i.e. other than a few well known ports everything else would be blocked). I am invoking "npm install" from package.json as a user (not 'sudo' ing). The installation is failing with the following logs.
Comments/solution would be appreciated.
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/express
npm http GET http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/connect/2.7.2
npm http GET http://registry.npmjs.org/mkdirp/0.3.3
npm http GET http://registry.npmjs.org/commander/0.6.1
npm http GET http://registry.npmjs.org/cookie/0.0.5
npm http GET http://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET http://registry.npmjs.org/send/0.1.0
npm http GET http://registry.npmjs.org/cookie-signature/0.0.1
npm http GET http://registry.npmjs.org/methods/0.0.1
npm http GET http://registry.npmjs.org/fresh/0.1.0
npm http GET http://registry.npmjs.org/debug
npm http GET http://registry.npmjs.org/connect/2.7.2
npm http GET http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/cookie/0.0.5
npm http GET http://registry.npmjs.org/commander/0.6.1
npm http GET http://registry.npmjs.org/mkdirp/0.3.3
npm http GET http://registry.npmjs.org/send/0.1.0
npm http GET http://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET http://registry.npmjs.org/fresh/0.1.0
npm http GET http://registry.npmjs.org/cookie-signature/0.0.1
npm http GET http://registry.npmjs.org/methods/0.0.1
npm http GET http://registry.npmjs.org/debug
npm http GET http://registry.npmjs.org/connect/2.7.2
npm http GET http://registry.npmjs.org/range-parser/0.0.4
npm http GET http://registry.npmjs.org/mkdirp/0.3.3
npm http GET http://registry.npmjs.org/commander/0.6.1
npm http GET http://registry.npmjs.org/cookie/0.0.5
npm http GET http://registry.npmjs.org/buffer-crc32/0.1.1
npm http GET http://registry.npmjs.org/send/0.1.0
npm http GET http://registry.npmjs.org/cookie-signature/0.0.1
npm http GET http://registry.npmjs.org/methods/0.0.1
npm http GET http://registry.npmjs.org/fresh/0.1.0
npm http GET http://registry.npmjs.org/debug
npm http GET http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! Error: Parse Error
npm ERR! at Socket.socketOnData (http.js:1485:20)
npm ERR! at TCP.onread (net.js:404:27)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Linux 3.0.0-20-generic
npm ERR! command "nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/nvbalaji/nodejs/hb
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.12
npm ERR! code HPE_INVALID_CONSTANT
npm WARN package.json methods#0.0.1 No README.md file found!
npm http GET http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! fetch failed http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http GET http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http GET http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR! fetch failed http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http GET http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http GET http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! fetch failed http://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm ERR! fetch failed http://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/nvbalaji/nodejs/hb/npm-debug.log
npm ERR! not ok code 0

maybe some processes during global installation
npm install express -g / npm install -g express
needs admin permissions for writing files in system folders. try not global installation npm install express.

This is how i've worked around it on my installs:
Create a new file called node
:\>gedit /usr/local/bin/node
Contents:
#!/bin/bash
exec /nodejs "$#"
:\>sudo chmod +x /usr/local/bin/node
Try your NPM install again.

Related

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.

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

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

Error installing derby#0.3.13

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

Socket.io installation on Win 7 fails

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

Resources