I get an errno ENOTFOUND error when trying to install cordova via npm.
This is the command I'm using:
sena$ sudo npm install -g cordova npm
And this is the response:
ERR! Darwin 14.3.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! node v4.1.0 npm ERR! npm v2.14.3 npm ERR! code ENOTFOUND npm
ERR! errno ENOTFOUND npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org
registry.npmjs.org:443 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 settings. 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'
Related
I've been working on this for a while and it's the simplest thing....I NEED to simply install express so I can move on and actually work. No matter what I do I get this same error and Express won't install:
~ npm install -g express
npm WARN checkPermissions Missing write access to /Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express
/Users/revjtanton/.nvm/versions/node/v0.12.2/lib
└── express#4.14.0
npm ERR! Darwin 15.6.0
npm ERR! argv "node" "/Users/revjtanton/.nvm/versions/node/v0.12.2/bin/npm" "install" "-g" "express"
npm ERR! node v0.12.2
npm ERR! npm v3.9.3
npm ERR! path /Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! Error: EACCES, access '/Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES, access '/Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/revjtanton/.nvm/versions/node/v0.12.2/lib/node_modules/express' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/revjtanton/npm-debug.log
I've managed permissions, cleaned caches, tried installing with sudo (which doesn't produce an error...but I'm still not able to use express).
Execute the command with sudo:
sudo npm install -g express
When I am installing through terminal I got the error below
npm ERR! network getaddrinfo ENOTFOUND
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 settings.
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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "cordova"
npm ERR! cwd /Users/abp2
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/abp2/npm-debug.log
npm ERR! not ok code 0
I followed many answers in this community, but still not able to install this.
According to some suggestion I have change install cordova code like that
$ sudo npm --proxy proxy-server:8080 install -g cordova
But here I am getting problem like that
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm ERR! fetch failed https://registry.npmjs.org/npmconf/-/npmconf-0.1.16.tgz
npm ERR! fetch failed https://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm ERR! fetch failed https://registry.npmjs.org/request/-/request-2.47.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm ERR! network tunneling socket could not be established, cause=connect EHOSTUNREACH
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 settings.
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 Darwin 13.4.0
npm ERR! command "node" "/usr/local/bin/npm" "--proxy" "proxy-server:8080" "install" "-g" "cordova"
npm ERR! cwd /Users/abp2
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ECONNRESET
npm ERR! not ok code 0
Thanks in advance.
I have problem while installing PhoneGap on my Mac OS machine using:
sudo npm install -g phonegap
Error message:
npm ERR! Error: shasum check failed for /Users/MYUSER/tmp/npm-33966-l4NZ7A8D/1387281663617-0.9133979633916169/tmp.tgz
npm ERR! Expected: dee5a33ff04d7217194dc1ad1342e3a441761942
npm ERR! Actual: ab7d89ca1f31db14db047d01222dd968649cfb50
npm ERR! at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR! at ReadStream.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:85:7)
npm ERR! at ReadStream.EventEmitter.emit (events.js:120:20)
npm ERR! at _stream_readable.js:896:16
npm ERR! at process._tickCallback (node.js:599:11)
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/isaacs/npm/issues>
npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "phonegap"
npm ERR! cwd /Users/HummusawY
npm ERR! node -v v0.11.10-pre
npm ERR! npm -v 1.3.17
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/MYUSER/npm-debug.log
npm ERR! not ok code 0
Try this:
sudo npm install https://registry.npmjs.org/npm/-/npm-1.3.19.tgz
then
sudo npm install -g phonegap
The problem on my checksum was caused by https://registry.npmjs.org/npm/-/npm-1.3.19.tgz
Try this first
"npm set registry https://registry.npmjs.org/"
if failed then try to use the npm mirror:
"npm set registry http://ec2-46-137-149-160.eu-west-1.compute.amazonaws.com"
then use it normally:
npm install express
You can downgrade Node.js to version 0.10.19 to solve the issue
try: npm install https://registry.npmjs.org/npm/-/npm-1.3.21.tgz
change from "19" to 21
I'm trying to install express package of Node.js through my Windows 7 CMD.
I did a
npm install express
and I'm getting the following error :
npm ERR! Error: getaddrinfo ENOENT
npm ERR! at errnoException (dns.js:31:11)
npm ERR! at Object.onanswer [as oncomplete] (dns.js:140:16)
and
npm ERR! cwd D:\node
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.16
npm ERR! syscall getaddrinfo
npm ERR! code ENOTFOUND
npm ERR! message getaddrinfo ENOENT
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! D:\node\npm-debug.log
npm not ok
I'm working behind a Firewall. Is that by any chance, the reason behind this?
Many thanks!
run cmd with administrator and it will work.
I have been searching for hours now and I still have no answer for this problem.
I have mac os x version 10.6.8
I installed nodejs from nodejs.org. Version is v0.6.14.
I did this in terminal to check npm: npm --version. npm version is 1.1.12
after that I tried npm install socket.io and I got this error...
pm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/socket.io-client/0.9.3
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/redis/0.6.7
npm http 304 https://registry.npmjs.org/redis/0.6.7
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
npm http 304 https://registry.npmjs.org/socket.io-client/0.9.3
npm http GET https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/active-x-obfuscator/0.0.1
npm http 304 https://registry.npmjs.org/xmlhttprequest/1.2.2
npm http 304 https://registry.npmjs.org/uglify-js/1.2.5
npm http GET https://registry.npmjs.org/zeparser/0.0.5
> ws#0.4.11 preinstall /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> make
execvp(): No such file or directory
npm ERR! Error: ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js'
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 Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io"
npm ERR! cwd /Users/NAME
npm ERR! node -v v0.6.14
npm ERR! npm -v 1.1.12
npm ERR! path /Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js
npm ERR! code ENOENT
npm ERR! message ENOENT, open '/Users/NAME/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/test/unit/compress/test/array1.js'
npm ERR! errno {}
npm ERR! ws#0.4.11 preinstall: `make`
npm ERR! `sh "-c" "make"` failed with 127
npm ERR!
npm ERR! Failed at the ws#0.4.11 preinstall script.
npm ERR! This is most likely a problem with the ws package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! make
npm ERR! You can get their info via:
npm ERR! npm owner ls ws
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "socket.io"
npm ERR! cwd /Users/NAME
npm ERR! node -v v0.6.14
npm ERR! npm -v 1.1.12
npm ERR! code ELIFECYCLE
npm ERR! message ws#0.4.11 preinstall: `make`
npm ERR! message `sh "-c" "make"` failed with 127
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/NAME/npm-debug.log
npm not ok
PLS help!
Force the installation using
npm install socket.io -f
Looks like the tests needs node-waf, but not the library directly. I hope they fix these issues eventually.
Socket.io runs a make upon install and requires node-waf in order to run. Did you install node via a package manager like ports, or did you use the dmg install on the node website?
This thread speaks to the issue you're having:
https://github.com/LearnBoost/socket.io/issues/773
Seems like if you install an earlier version of socket.io there is no need to run the make script. I tried the following and managed to get it installed successfully on my Mac OSX 10.6.8:
npm install socket.io#0.7
There is further discussion on this google groups post.