Heroku Deploy Getting 404 Error - node.js

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

Related

Errors when installing socket.io

I am trying to install socket.io on debian and run eBot for CS:GO, but I tried everything that i found and still getting error when running "npm install socket.io". I am including output from terminal. Any ideas how to fix it? When i try to run eBot it say that Websocket server crashed.
root#debian:/home/ebotv3/ebot-csgo# npm install socket.io
npm http GET http://registry.npmjs.org/socket.io
npm http 304 http://registry.npmjs.org/socket.io
npm http GET http://registry.npmjs.org/engine.io/1.5.4
npm http GET http://registry.npmjs.org/socket.io-parser/2.2.4
npm http GET http://registry.npmjs.org/socket.io-client/1.3.7
npm http GET http://registry.npmjs.org/socket.io-adapter/0.3.1
npm http GET http://registry.npmjs.org/has-binary-data/0.1.3
npm http GET http://registry.npmjs.org/debug/2.1.0
npm http 304 http://registry.npmjs.org/engine.io/1.5.4
npm http 304 http://registry.npmjs.org/socket.io-parser/2.2.4
npm http 304 http://registry.npmjs.org/debug/2.1.0
npm http 304 http://registry.npmjs.org/socket.io-client/1.3.7
npm http 304 http://registry.npmjs.org/socket.io-adapter/0.3.1
npm http 304 http://registry.npmjs.org/has-binary-data/0.1.3
npm http GET http://registry.npmjs.org/debug/1.0.2
npm http GET http://registry.npmjs.org/socket.io-parser/2.2.2
npm http GET http://registry.npmjs.org/object-keys/1.0.1
npm http GET http://registry.npmjs.org/ms/0.6.2
npm http GET http://registry.npmjs.org/isarray/0.0.1
npm http GET http://registry.npmjs.org/ws/0.8.0
npm http GET http://registry.npmjs.org/base64id/0.1.0
npm http GET http://registry.npmjs.org/debug/1.0.3
npm http GET http://registry.npmjs.org/engine.io-parser/1.2.2
npm http GET http://registry.npmjs.org/component-bind/1.0.0
npm http GET http://registry.npmjs.org/component-emitter/1.1.2
npm http GET http://registry.npmjs.org/object-component/0.0.3
npm http GET http://registry.npmjs.org/backo2/1.0.2
npm http GET http://registry.npmjs.org/has-binary/0.1.6
npm http GET http://registry.npmjs.org/parseuri/0.0.2
npm http GET http://registry.npmjs.org/to-array/0.1.3
npm http GET http://registry.npmjs.org/indexof/0.0.1
npm http GET http://registry.npmjs.org/debug/0.7.4
npm http GET http://registry.npmjs.org/engine.io-client/1.5.4
npm http 304 http://registry.npmjs.org/debug/1.0.2
npm http 304 http://registry.npmjs.org/socket.io-parser/2.2.2
npm http GET http://registry.npmjs.org/json3/3.2.6
npm http GET http://registry.npmjs.org/benchmark/1.0.0
npm http 304 http://registry.npmjs.org/ws/0.8.0
npm http 304 http://registry.npmjs.org/ms/0.6.2
npm http 304 http://registry.npmjs.org/base64id/0.1.0
npm http 304 http://registry.npmjs.org/engine.io-parser/1.2.2
npm http 304 http://registry.npmjs.org/debug/1.0.3
npm http GET http://registry.npmjs.org/ms/0.6.2
npm http 304 http://registry.npmjs.org/component-emitter/1.1.2
npm http GET http://registry.npmjs.org/utf8/2.1.0
npm http GET http://registry.npmjs.org/blob/0.0.4
npm http GET http://registry.npmjs.org/after/0.8.1
npm http GET http://registry.npmjs.org/arraybuffer.slice/0.0.6
npm http GET http://registry.npmjs.org/base64-arraybuffer/0.1.2
npm http GET http://registry.npmjs.org/options
npm http GET http://registry.npmjs.org/ultron
npm http GET http://registry.npmjs.org/bufferutil
npm http GET http://registry.npmjs.org/utf-8-validate
npm http 304 http://registry.npmjs.org/component-bind/1.0.0
npm http 304 http://registry.npmjs.org/object-component/0.0.3
npm http 304 http://registry.npmjs.org/object-keys/1.0.1
npm http GET http://registry.npmjs.org/component-emitter/1.1.2
npm http 304 http://registry.npmjs.org/has-binary/0.1.6
npm http 304 http://registry.npmjs.org/parseuri/0.0.2
npm http 304 http://registry.npmjs.org/isarray/0.0.1
npm http 304 http://registry.npmjs.org/debug/0.7.4
npm http 304 http://registry.npmjs.org/indexof/0.0.1
npm http 304 http://registry.npmjs.org/to-array/0.1.3
npm http 304 http://registry.npmjs.org/engine.io-client/1.5.4
npm http 304 http://registry.npmjs.org/ms/0.6.2
npm http 304 http://registry.npmjs.org/backo2/1.0.2
npm http GET http://registry.npmjs.org/better-assert
npm http 304 http://registry.npmjs.org/blob/0.0.4
npm http GET http://registry.npmjs.org/isarray/0.0.1
npm http 304 http://registry.npmjs.org/benchmark/1.0.0
npm http GET http://registry.npmjs.org/component-inherit/0.0.3
npm http GET http://registry.npmjs.org/debug/1.0.4
npm http GET http://registry.npmjs.org/engine.io-parser/1.2.2
npm http GET http://registry.npmjs.org/has-cors/1.0.3
npm http GET http://registry.npmjs.org/parsejson/0.0.1
npm http GET http://registry.npmjs.org/parseqs/0.0.2
npm http GET http://registry.npmjs.org/ws/0.8.0
npm http GET http://registry.npmjs.org/parseuri/0.0.4
npm http GET https://github.com/rase-/node-XMLHttpRequest/archive/a6b6f2.tar.gz
npm http 304 http://registry.npmjs.org/utf8/2.1.0
npm http 304 http://registry.npmjs.org/arraybuffer.slice/0.0.6
npm http 304 http://registry.npmjs.org/after/0.8.1
npm http 304 http://registry.npmjs.org/json3/3.2.6
npm http 304 http://registry.npmjs.org/options
npm http 304 http://registry.npmjs.org/ultron
npm http 304 http://registry.npmjs.org/bufferutil
npm http 304 http://registry.npmjs.org/utf-8-validate
npm http 304 http://registry.npmjs.org/isarray/0.0.1
npm http GET http://registry.npmjs.org/bindings
npm http GET http://registry.npmjs.org/nan
npm http 304 http://registry.npmjs.org/better-assert
npm http 304 http://registry.npmjs.org/component-emitter/1.1.2
npm http 304 http://registry.npmjs.org/debug/1.0.4
npm http GET http://registry.npmjs.org/callsite/1.0.0
npm http 304 http://registry.npmjs.org/component-inherit/0.0.3
npm http 304 http://registry.npmjs.org/parsejson/0.0.1
npm http 304 http://registry.npmjs.org/engine.io-parser/1.2.2
npm http 304 http://registry.npmjs.org/ws/0.8.0
npm http 304 http://registry.npmjs.org/has-cors/1.0.3
npm http 304 http://registry.npmjs.org/parseqs/0.0.2
npm http 200 https://github.com/rase-/node-XMLHttpRequest/archive/a6b6f2.tar.gz
npm http 304 http://registry.npmjs.org/base64-arraybuffer/0.1.2
npm http 304 http://registry.npmjs.org/bindings
npm http 304 http://registry.npmjs.org/parseuri/0.0.4
npm http GET http://registry.npmjs.org/isarray/0.0.1
npm http 304 http://registry.npmjs.org/callsite/1.0.0
npm http 304 http://registry.npmjs.org/nan
npm ERR! error installing utf-8-validate#1.2.1
npm ERR! error installing bufferutil#1.2.1
npm ERR! error installing ws#0.8.0
npm ERR! error installing engine.io#1.5.4
npm ERR! error installing socket.io#1.3.7
npm ERR! Error: No compatible version found: nan#'^2.0.5'
npm ERR! Valid install targets:
npm ERR! ["0.3.0-wip","0.3.0-wip2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.6.0","0.7.0","0.7.1","0.8.0","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.4.2","1.4.3","1.5.1","1.5.2","1.6.0","1.5.3","1.6.1","1.6.2","1.7.0","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.9.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0"]
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:488:10)
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:375:15
npm ERR! at Object.saved [as oncomplete] (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:147: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.2.0-4-amd64
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io"
npm ERR! cwd /home/ebotv3/ebot-csgo
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! message No compatible version found: nan#'^2.0.5'
npm ERR! message Valid install targets:
npm ERR! message ["0.3.0-wip","0.3.0-wip2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.4.3","0.4.4","0.5.0","0.5.1","0.5.2","0.6.0","0.7.0","0.7.1","0.8.0","1.0.0","1.1.0","1.1.1","1.1.2","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.4.2","1.4.3","1.5.1","1.5.2","1.6.0","1.5.3","1.6.1","1.6.2","1.7.0","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.9.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0"]
npm http GET http://registry.npmjs.org/better-assert
npm http GET https://github.com/component/global/archive/v2.0.1.tar.gz
npm http GET http://registry.npmjs.org/ms/0.6.2
npm http GET http://registry.npmjs.org/after/0.8.1
npm http GET http://registry.npmjs.org/arraybuffer.slice/0.0.6
npm http GET http://registry.npmjs.org/base64-arraybuffer/0.1.2
npm http GET http://registry.npmjs.org/blob/0.0.4
npm http GET http://registry.npmjs.org/utf8/2.1.0
npm http 304 http://registry.npmjs.org/isarray/0.0.1
npm ERR! error installing has-binary#0.1.6
npm ERR! error installing engine.io-parser#1.2.2
npm http GET http://registry.npmjs.org/options
npm http GET http://registry.npmjs.org/ultron
npm http GET http://registry.npmjs.org/bufferutil
npm http GET http://registry.npmjs.org/utf-8-validate
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/ebotv3/ebot-csgo/npm-debug.log
npm not ok
You need to upgrade your version of node. node v0.6 is really old and not only is the version of npm you're using too old to support the caret (^) used in version specifiers, but nan does not support node v0.6 anyway.

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

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.

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

npm ERR! addPlacedTarball Could not remove

I think this is the error that is halting my progress as I try to install express and dependencies. This log is too confusing for me. There are a number of warning, so I can't work out which is the specific one that's causing problems.
C:\Users\Phucker>npm install -g express
npm http GET https://registry.npmjs.org/express
npm http 304 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/connect/2.8.4
npm http GET https://registry.npmjs.org/commander/1.2.0
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/send/0.1.3
npm http GET https://registry.npmjs.org/cookie-signature/1.0.1
npm http GET https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/cookie/0.1.0
npm http 304 https://registry.npmjs.org/commander/1.2.0
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
npm http 304 https://registry.npmjs.org/connect/2.8.4
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http 304 https://registry.npmjs.org/fresh/0.1.0
npm http 304 https://registry.npmjs.org/methods/0.0.1
npm http 304 https://registry.npmjs.org/send/0.1.3
npm WARN package.json methods#0.0.1 No README.md file found!
npm http 304 https://registry.npmjs.org/cookie-signature/1.0.1
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/qs/0.6.5
npm http GET https://registry.npmjs.org/bytes/0.2.0
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/uid2/0.0.2
npm http GET https://registry.npmjs.org/formidable/1.0.14
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/uid2/0.0.2
npm http 304 https://registry.npmjs.org/formidable/1.0.14
npm WARN package.json uid2#0.0.2 No README.md file found!
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/bytes/0.2.0
npm http 304 https://registry.npmjs.org/qs/0.6.5
C:\Users\Phucker\AppData\Roaming\npm\express -> C:\Users\Phucker\AppData\Ro
\node_modules\express\bin\express
npm WARN unmet dependency C:\Users\Phucker\AppData\Roaming\npm\node_modul
o requires express#'3.0.x' but will load
npm WARN unmet dependency C:\Users\Phucker\AppData\Roaming\npm\node_modul
s,
npm WARN unmet dependency which is version 3.3.4
express#3.3.4 C:\Users\Phucker\AppData\Roaming\npm\node_modules\express
├── methods#0.0.1
├── fresh#0.1.0
├── range-parser#0.0.4
├── cookie-signature#1.0.1
├── buffer-crc32#0.2.1
├── cookie#0.1.0
├── debug#0.7.2
├── mkdirp#0.3.5
├── commander#1.2.0 (keypress#0.1.0)
├── send#0.1.3 (mime#1.2.9)
└── connect#2.8.4 (uid2#0.0.2, pause#0.0.1, qs#0.6.5, bytes#0.2.0, form
0.14)
C:\Users\Phucker>express -c stylus express_example
create : express_example
create : express_example/package.json
create : express_example/app.js
create : express_example/public
create : express_example/public/javascripts
create : express_example/public/images
create : express_example/public/stylesheets
create : express_example/public/stylesheets/style.styl
create : express_example/routes
create : express_example/routes/index.js
create : express_example/routes/user.js
create : express_example/views
create : express_example/views/layout.jade
create : express_example/views/index.jade
install dependencies:
$ cd express_example && npm install
run the app:
$ node app
C:\Users\Phucker>cd express_example && npm install
npm WARN package.json application-name#0.0.1 No README.md file found!
npm http GET https://registry.npmjs.org/express/3.3.4
npm http GET https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/jade
npm http 200 https://registry.npmjs.org/express/3.3.4
npm http GET https://registry.npmjs.org/express/-/express-3.3.4.tgz
npm http 200 https://registry.npmjs.org/express/-/express-3.3.4.tgz
npm http 200 https://registry.npmjs.org/stylus
npm http GET https://registry.npmjs.org/stylus/-/stylus-0.34.1.tgz
npm http 200 https://registry.npmjs.org/stylus/-/stylus-0.34.1.tgz
npm http 200 https://registry.npmjs.org/jade
npm http GET https://registry.npmjs.org/jade/-/jade-0.33.0.tgz
npm http 200 https://registry.npmjs.org/jade/-/jade-0.33.0.tgz
npm http GET https://registry.npmjs.org/connect/2.8.4
npm http GET https://registry.npmjs.org/commander/1.2.0
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/fresh/0.1.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/send/0.1.3
npm http GET https://registry.npmjs.org/cookie-signature/1.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/transformers/2.0.1
npm http GET https://registry.npmjs.org/monocle/0.1.48
npm http GET https://registry.npmjs.org/character-parser/1.0.2
npm http GET https://registry.npmjs.org/with
npm http GET https://registry.npmjs.org/constantinople
npm http GET https://registry.npmjs.org/cssom
npm http 304 https://registry.npmjs.org/connect/2.8.4
npm http 304 https://registry.npmjs.org/range-parser/0.0.4
npm http 304 https://registry.npmjs.org/commander/1.2.0
npm http 304 https://registry.npmjs.org/mkdirp/0.3.5
npm http 304 https://registry.npmjs.org/cookie/0.1.0
npm http 304 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http 304 https://registry.npmjs.org/fresh/0.1.0
npm http 304 https://registry.npmjs.org/methods/0.0.1
npm http 304 https://registry.npmjs.org/send/0.1.3
npm http 304 https://registry.npmjs.org/cookie-signature/1.0.1
npm WARN package.json methods#0.0.1 No README.md file found!
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/keypress
npm http GET https://registry.npmjs.org/bytes/0.2.0
npm http GET https://registry.npmjs.org/uid2/0.0.2
npm http GET https://registry.npmjs.org/pause/0.0.1
npm http GET https://registry.npmjs.org/qs/0.6.5
npm http GET https://registry.npmjs.org/formidable/1.0.14
npm http 200 https://registry.npmjs.org/monocle/0.1.48
npm http GET https://registry.npmjs.org/monocle/-/monocle-0.1.48.tgz
npm http 200 https://registry.npmjs.org/with
npm http 200 https://registry.npmjs.org/cssom
npm http GET https://registry.npmjs.org/cssom/-/cssom-0.2.5.tgz
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/keypress
npm http 304 https://registry.npmjs.org/bytes/0.2.0
npm http 304 https://registry.npmjs.org/uid2/0.0.2
npm WARN package.json uid2#0.0.2 No README.md file found!
npm http 304 https://registry.npmjs.org/pause/0.0.1
npm http 304 https://registry.npmjs.org/qs/0.6.5
npm http 304 https://registry.npmjs.org/formidable/1.0.14
npm http 200 https://registry.npmjs.org/monocle/-/monocle-0.1.48.tgz
npm http 200 https://registry.npmjs.org/transformers/2.0.1
npm http GET https://registry.npmjs.org/transformers/-/transformers-2.0
npm http 200 https://registry.npmjs.org/cssom/-/cssom-0.2.5.tgz
npm http 200 https://registry.npmjs.org/constantinople
npm http 200 https://registry.npmjs.org/transformers/-/transformers-2.0
npm http 200 https://registry.npmjs.org/mkdirp
npm http 200 https://registry.npmjs.org/character-parser/1.0.2
npm http GET https://registry.npmjs.org/character-parser/-/character-pa
2.tgz
npm http 200 https://registry.npmjs.org/character-parser/-/character-pa
2.tgz
npm ERR! addPlacedTarball Could not remove "C:\\Users\\Phucker\\AppData\\
npm-cache\\character-parser\\1.0.2\\package"
npm ERR! Error: ENOTEMPTY, rmdir 'C:\Users\Phucker\AppData\Roaming\npm-ca
cter-parser\1.0.2\package'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program F
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\Phucker\express_example
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path C:\Users\Phucker\AppData\Roaming\npm-cache\character-parser
ckage
npm ERR! code ENOTEMPTY
npm ERR! errno 53
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\Phucker\express_example\npm-debug.log
npm ERR! not ok code 0
C:\Users\Phucker\express_example>
Deleting the specific directory works for me. It will be
C:\\Users\\Phucker\\AppData\\
npm-cache\\character-parser\\1.0.2\\package
in your case. ( I used node.js for cordova installation).
Thanks,
prodeveloper

Resources