Just CANNOT install ember-cli with npm - npm

I'm running on mac osx yosemite 10.10.5 & this is what I get whenever I hit npm install -g ember-cli
npm ERR! Darwin 14.5.0
npm ERR! argv "/Users/itsfadnis/.nvm/versions/io.js/v3.3.1/bin/iojs" "/Users/itsfadnis/.nvm/versions/io.js/v3.3.1/bin/npm" "install" "-g" "ember-cli" "--no-optional"
npm ERR! node v3.3.1
npm ERR! npm v2.14.3
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT 103.245.222.162:80
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! Please include the following file with any support request:
npm ERR! /Users/itsfadnis/npm-debug.log
I have tried the following and none have worked:
Reinstall node and npm
npm set registry http://registry.npmjs.org
Tried with different versions of node - v0.12.8, iojs-v3.3.1, v4.4.2, v5.0
Without optional dependencies npm install -g ember-cli
As administrator sudo npm install -g ember-cli
Network connection is absolutely fine and I'm not behind a proxy.
Any help on this would be appreciated. Thanks.
Turns out it was failing due to a firewall enabled on my router. Disabling it did the trick!

Related

im facing a problem while installing npm install mangoose

PS C:\Users\hp\Desktop\Complete Web Development Bootcamp\mongoosejs> npm install mongoose
npm ERR! code ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! errno ENOTFOUND
npm ERR! network request to https://registry.npmjs.org/mongoose failed, reason: getaddrinfo ENOTFOUND registry.npmjs.org
npm ERR! network This is a problem 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! A complete log of this run can be found in:
npm ERR! C:\Users\hp\AppData\Local\npm-cache\_logs\2023-02-08T04_52_02_331Z-debug-0.log
i try
npm install mongoose
npm cache clean
npm install -s mongoose
npm install -g mongoose
it's a proxy problem the "-d flag" solved the issue in my case:
npm install -d mongoose

Facing issue in setting my first react-native project.

npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "--save-exact" "react-native"
npm ERR! node v4.2.1
npm ERR! npm v3.10.6
npm ERR! code ECONNRESET
npm ERR! network tunneling socket could not be established, cause=getaddrinfo ENOTFOUND proxy proxy:8083
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! Please include the following file with any support request:
npm ERR! /Users/i816556/AwesomeProject/npm-debug.log
npm install --save --save-exact react-native failed
Probably you have some npm related issues. Check this question for more help.

npm install --g gulp - hangs

Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> npm install --g gulp
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Karol\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\np
m-cli.js" "install" "--g" "gulp"
npm ERR! node v5.4.1
npm ERR! npm v3.10.5
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT 151.101.12.162: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'
npm ERR! Please include the following file with any support request:
npm ERR! C:\Windows\system32\npm-debug.log
PS C:\Windows\system32>
I have a trouble with npm install. I can't install gulp and other libraries. Installation hangs and then i got the error. :(
I found solution :-)
npm config set proxy false
npm cache clean

Error with NPM install - code ENOTFOUND

I am trying to run 'npm install' for my homework assignment - which has the package.json file given to me already but I keep on getting the following error:
Ramons-MacBook-Pro-3:project4 sacrams14$ npm install
npm WARN package.json project4#1.0.0 No repository field.
npm WARN package.json project4#1.0.0 No README data
npm ERR! Darwin 14.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.6
npm ERR! npm v2.14.12
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:80
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! Please include the following file with any support request:
npm ERR! /Users/sacrams14/Dropbox/CS 142/project4/npm-debug.log
It really seems that there is problem with your internet connection.
Please check internet connectivity (seems to work beacause you were able to write here ;)).
Check current version of npm and your installed version. Maybe old version is not able to contact with server.
Check out if your firewall allows npm to contact with the internet.

npm install -g ionic not working on windows 7 even I am not on proxy

I am kinda stuck here, npm install -g ionic not working on my home computer which is windows 7 and i dont have any proxy. i am able to download other packages like npm install -g gulp etc.
Already tried changing as suggested by other guys on stackoverflow here
npm config set registry http://registry.npmjs.org/
I am getting bellow error
npm ERR! network read ECONNRESET
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! Windows_NT 6.1.7600
npm ERR! argv "C:\\node\\\\node.exe" "C:\\node\\node_modules\\npm\\bin\\npm-cli.
js" "install" "ionic"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read
Try to clear cache first:
npm cache clean
and then Try to install again
npm install -g ionic