Node.js: Error deploying to Heroku when added googleapis package - node.js

I added to my package.json the previous line, it worked perfect locally but when I deploy to heroku it is rejected.
Error: No compatible version found: inherits#'^2.0.1'
package.json
"googleapis": ">= 0.0.0",
Heroku deploy log:
-----> Deleting 2 files matching .slugignore patterns.
-----> Removing .DS_Store files
-----> Fetching custom git buildpack... done
-----> Node.js app detected
-----> Requested node range: 0.8.21
-----> Resolved node version: 0.8.21
-----> Downloading and installing node
-----> Restoring node_modules directory from cache
-----> Pruning cached dependencies not specified in package.json
-----> Exporting config vars to environment
-----> Installing dependencies
npm http GET https://registry.npmjs.org/googleapis
npm http 200 https://registry.npmjs.org/googleapis
npm http GET https://registry.npmjs.org/googleapis/-/googleapis-1.0.9.tgz
npm http 200 https://registry.npmjs.org/googleapis/-/googleapis-1.0.9.tgz
npm http GET https://registry.npmjs.org/async/0.2.10
npm http GET https://registry.npmjs.org/gapitoken/0.1.2
npm http GET https://registry.npmjs.org/multipart-stream/1.0.0
npm http GET https://registry.npmjs.org/request/2.37.0
npm http 200 https://registry.npmjs.org/gapitoken/0.1.2
npm http GET https://registry.npmjs.org/gapitoken/-/gapitoken-0.1.2.tgz
npm http 200 https://registry.npmjs.org/multipart-stream/1.0.0
npm http GET https://registry.npmjs.org/multipart-stream/-/multipart-stream-1.0.0.tgz
npm http 200 https://registry.npmjs.org/gapitoken/-/gapitoken-0.1.2.tgz
npm http 200 https://registry.npmjs.org/request/2.37.0
npm http 200 https://registry.npmjs.org/async/0.2.10
npm http GET https://registry.npmjs.org/request/-/request-2.37.0.tgz
npm http GET https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 200 https://registry.npmjs.org/multipart-stream/-/multipart-stream-1.0.0.tgz
npm http 200 https://registry.npmjs.org/request/-/request-2.37.0.tgz
npm http 200 https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http GET https://registry.npmjs.org/jws/0.0.2
npm http GET https://registry.npmjs.org/sandwich-stream
npm http GET https://registry.npmjs.org/inherits
npm http 200 https://registry.npmjs.org/jws/0.0.2
npm http 200 https://registry.npmjs.org/inherits
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/mime-types
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/tough-cookie
npm http GET https://registry.npmjs.org/form-data
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/oauth-sign
npm http GET https://registry.npmjs.org/hawk/1.1.1
npm http GET https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/jws/-/jws-0.0.2.tgz
npm http 200 https://registry.npmjs.org/mime-types
npm http 200 https://registry.npmjs.org/sandwich-stream
npm ERR! Error: No compatible version found: inherits#'^2.0.1'
npm ERR! Valid install targets:
npm ERR! ["1.0.0","2.0.0","2.0.1"]
npm ERR! at installTargetsError (/tmp/build_63edc9a5-ba9f-4380-9d67-15fc37cf717f/vendor/node/lib/node_modules/npm/lib/cache.js:679:10)
npm ERR! at /tmp/build_63edc9a5-ba9f-4380-9d67-15fc37cf717f/vendor/node/lib/node_modules/npm/lib/cache.js:594:10
npm ERR! at saved (/tmp/build_63edc9a5-ba9f-4380-9d67-15fc37cf717f/vendor/node/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:297: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.8.11-ec2
npm ERR! command "/tmp/build_63edc9a5-ba9f-4380-9d67-15fc37cf717f/vendor/node/bin/node" "/tmp/build_63edc9a5-ba9f-4380-9d67-15fc37cf717f/vendor/node/bin/npm" "install" "--userconfig" "/tmp/build_63edc9a5-ba9f-4380-9d67-15fc37cf717f/.npmrc" "--production"
npm ERR! cwd /tmp/build_63edc9a5-ba9f-4380-9d67-15fc37cf717f
npm ERR! node -v v0.8.21
npm ERR! npm -v 1.2.11
Any thoughts?

Solved upgrading Node version and npm. Node was 0.8.21 and npm was 1.2.10.
Upgraded package.json:
"node": "0.10.30",
"npm": "1.3.6"
In fact, seems like npm version is irrelevant for heroku:
There is no need to specify an npm version, as npm is bundled with node.

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.

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

Unable to install Express using npm in Ubuntu 11.10

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.

Heroku Deploy Getting 404 Error

We are trying to deploy an app to heroku and having some issues with the MongoDB dependency returning a 404 error.
I ran into the same problem earlier, I believe the resource was updated or down before. Here is the npm log we get from heroku.
git push heroku master
Counting objects: 107, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (88/88), done.
Writing objects: 100% (93/93), 255.39 KiB | 61 KiB/s, done.
Total 93 (delta 43), reused 0 (delta 0)
-----> Heroku receiving push
-----> Removing .DS_Store files
-----> Node.js app detected
-----> Resolving engine versions
Using Node.js version: 0.8.6
Using npm version: 1.1.41
-----> Fetching Node.js binaries
-----> Vendoring node into slug
-----> Installing dependencies with npm
npm http GET https://registry.npmjs.org/express/3.0.0rc1
npm http GET https://registry.npmjs.org/ejs
npm http GET https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/connect-mongo
npm http GET https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/connect-mongo
npm http GET https://registry.npmjs.org/connect-mongo/-/connect-mongo-0.1.9.tgz
npm http 200 https://registry.npmjs.org/express/3.0.0rc1
npm http GET https://registry.npmjs.org/express/-/express-3.0.0rc1.tgz
npm http 200 https://registry.npmjs.org/ejs
npm http GET https://registry.npmjs.org/ejs/-/ejs-0.8.1.tgz
npm http 200 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.3.3.tgz
npm http 200 https://registry.npmjs.org/connect-mongo/-/connect-mongo-0.1.9.tgz
npm http 200 https://registry.npmjs.org/express/-/express-3.0.0rc1.tgz
npm WARN package.json connect-mongo#0.1.9 No README.md file found!
npm http 200 https://registry.npmjs.org/mongoose
npm http GET https://registry.npmjs.org/mongoose/-/mongoose-3.0.1.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.3.3.tgz
npm http 200 https://registry.npmjs.org/ejs/-/ejs-0.8.1.tgz
npm http 200 https://registry.npmjs.org/mongoose/-/mongoose-3.0.1.tgz
npm http GET https://registry.npmjs.org/connect/2.4.1
npm http GET https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/mongodb
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/mkdirp/0.3.3
npm http GET https://registry.npmjs.org/cookie/0.0.4
npm http GET https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/crc/0.2.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/send/0.0.3
npm http GET https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 https://registry.npmjs.org/connect/2.4.1
npm http 200 https://registry.npmjs.org/commander/0.6.1
npm http GET https://registry.npmjs.org/connect/-/connect-2.4.1.tgz
npm http GET https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http 200 https://registry.npmjs.org/cookie/0.0.4
npm http GET https://registry.npmjs.org/cookie/-/cookie-0.0.4.tgz
npm http 200 https://registry.npmjs.org/mkdirp/0.3.3
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.3.tgz
npm http 200 https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http 200 https://registry.npmjs.org/crc/0.2.0
npm http GET https://registry.npmjs.org/crc/-/crc-0.2.0.tgz
npm http 200 https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 https://registry.npmjs.org/mongodb
npm http GET https://registry.npmjs.org/-/mongodb-0.9.9-8.tgz
npm http 200 https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/send/0.0.3
npm http 200 https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/debug/-/debug-0.7.0.tgz
npm http GET https://registry.npmjs.org/send/-/send-0.0.3.tgz
npm http GET https://registry.npmjs.org/methods/-/methods-0.0.1.tgz
npm http 200 https://registry.npmjs.org/connect/-/connect-2.4.1.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.3.tgz
npm http 200 https://registry.npmjs.org/cookie/-/cookie-0.0.4.tgz
npm http 200 https://registry.npmjs.org/fresh/-/fresh-0.1.0.tgz
npm http 200 https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
npm http 404 https://registry.npmjs.org/-/mongodb-0.9.9-8.tgz
npm http 200 https://registry.npmjs.org/methods/-/methods-0.0.1.tgz
npm http 200 https://registry.npmjs.org/send/-/send-0.0.3.tgz
npm http 200 https://registry.npmjs.org/debug/-/debug-0.7.0.tgz
npm http 200 https://registry.npmjs.org/crc/-/crc-0.2.0.tgz
npm http GET https://registry.npmjs.org/hooks/0.2.1
npm http GET https://registry.npmjs.org/mongodb/1.1.2
npm http GET https://registry.npmjs.org/ms/0.1.0
npm WARN package.json connect#2.4.1 No README.md file found!
npm ERR! fetch failed https://registry.npmjs.org/-/mongodb-0.9.9-8.tgz
npm ERR! Error: 404 Not Found
npm ERR! at null.<anonymous> (/tmp/node-npm-oliq/lib/utils/fetch.js:47:16)
npm ERR! at EventEmitter.emit (events.js:115:20)
npm ERR! at WriteStream.flush (fs.js:1514:12)
npm ERR! at fs.close (/tmp/node-npm-oliq/node_modules/graceful-fs/graceful-fs.js:94:5)
npm ERR! at Object.oncomplete (fs.js:297: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 2.6.32-343-ec2
npm ERR! command "/tmp/node-node-0RqS/bin/node" "/tmp/node-npm-oliq/cli.js" "install" "--production"
npm ERR! cwd /tmp/build_1kq3xko4hyz59
npm ERR! node -v v0.8.6
npm ERR! npm -v 1.1.41
npm WARN package.json methods#0.0.1 No README.md file found!
npm http 200 https://registry.npmjs.org/ms/0.1.0
npm http 200 https://registry.npmjs.org/hooks/0.2.1
npm http GET https://registry.npmjs.org/ms/-/ms-0.1.0.tgz
npm http GET https://registry.npmjs.org/hooks/-/hooks-0.2.1.tgz
npm http 200 https://registry.npmjs.org/mongodb/1.1.2
npm http GET https://registry.npmjs.org/-/mongodb-1.1.2.tgz
npm http GET https://registry.npmjs.org/mime/1.2.6
npm http GET https://registry.npmjs.org/qs/0.4.2
npm http GET https://registry.npmjs.org/formidable/1.0.11
npm http GET https://registry.npmjs.org/bytes/0.1.0
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http 200 https://registry.npmjs.org/ms/-/ms-0.1.0.tgz
npm http 200 https://registry.npmjs.org/hooks/-/hooks-0.2.1.tgz
npm http 404 https://registry.npmjs.org/-/mongodb-1.1.2.tgz
npm http 200 https://registry.npmjs.org/formidable/1.0.11
npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.11.tgz
npm http 200 https://registry.npmjs.org/mime/1.2.6
npm ERR! fetch failed https://registry.npmjs.org/-/mongodb-1.1.2.tgz
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.6.tgz
npm http 200 https://registry.npmjs.org/bytes/0.1.0
npm http GET https://registry.npmjs.org/bytes/-/bytes-0.1.0.tgz
npm http 200 https://registry.npmjs.org/pause/0.0.1
npm http 200 https://registry.npmjs.org/qs/0.4.2
npm http GET https://registry.npmjs.org/pause/-/pause-0.0.1.tgz
npm http GET https://registry.npmjs.org/qs/-/qs-0.4.2.tgz
npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.11.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.6.tgz
npm http 200 https://registry.npmjs.org/bytes/-/bytes-0.1.0.tgz
npm http 200 https://registry.npmjs.org/qs/-/qs-0.4.2.tgz
npm http 200 https://registry.npmjs.org/pause/-/pause-0.0.1.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/build_1kq3xko4hyz59/npm-debug.log
npm ERR! not ok code 0
! Failed to install --production dependencies with npm
! Heroku push rejected, failed to compile Node.js app
Any ideas?
There's currently a wide-spread problem with npm hitting 404 errors:
NPM fetch failed

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