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.
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
I just came across milewise/node-soap and when I run npm install soap, it fails with the following errors:
sudo npm install soap
npm http GET https://registry.npmjs.org/soap
npm http 304 https://registry.npmjs.org/soap
npm http GET https://registry.npmjs.org/node-expat
npm http GET https://registry.npmjs.org/request
npm http 304 https://registry.npmjs.org/node-expat
npm http 304 https://registry.npmjs.org/request
npm http GET https://registry.npmjs.org/qs
npm http GET https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/http-signature
npm http GET https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/aws-sign
npm http GET https://registry.npmjs.org/cookie-jar
npm http GET https://registry.npmjs.org/node-uuid
npm http GET https://registry.npmjs.org/mime
npm http GET https://registry.npmjs.org/form-data
> node-expat#2.0.0 install /Users/rrazavipour-lp/node_modules/soap/node_modules/node-expat
> node-gyp rebuild
npm http 304 https://registry.npmjs.org/json-stringify-safe
npm http 304 https://registry.npmjs.org/tunnel-agent
npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
npm http 304 https://registry.npmjs.org/qs
npm http 304 https://registry.npmjs.org/hawk
npm http 304 https://registry.npmjs.org/http-signature
npm http 304 https://registry.npmjs.org/oauth-sign
npm http 304 https://registry.npmjs.org/forever-agent
npm http GET https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
npm http GET https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
npm http 304 https://registry.npmjs.org/aws-sign
npm http 304 https://registry.npmjs.org/node-uuid
npm http 304 https://registry.npmjs.org/cookie-jar
npm http 304 https://registry.npmjs.org/mime
npm http 304 https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at F (/usr/local/lib/node_modules/npm/node_modules/which/which.js:43:28)
gyp ERR! stack at E (/usr/local/lib/node_modules/npm/node_modules/which/which.js:46:29)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/which/which.js:57:16
gyp ERR! stack at Object.oncomplete (fs.js:107:15)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/rrazavipour-lp/node_modules/soap/node_modules/node-expat
gyp ERR! node -v v0.10.13
gyp ERR! node-gyp -v v0.10.2
gyp ERR! not ok
unbuild node-expat#2.0.0
unbuild soap#0.2.7
npm ERR! weird error 1
npm http 200 https://registry.npmjs.org/hawk/-/hawk-1.0.0.tgz
npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.3.0.tgz
npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.3.0.tgz
npm http 200 https://registry.npmjs.org/http-signature/-/http-signature-0.10.0.tgz
unbuild request#2.27.0
npm http 200 https://registry.npmjs.org/cookie-jar/-/cookie-jar-0.3.0.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.11.tgz
npm ERR! not ok code 0
Rezas-MacBook-Pro:node_modules rrazavipour-lp$
What is causing the failure?
Yes, it looks like you are missing make on your system. Have you installed xcode command line tools?
That should install make and other useful dev tools for you.
Here is another SO question related to installing xcode CLI tools :: Xcode 4.4 and later install Command Line Tools
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
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