简体   繁体   中英

Can't Install npm Express

I'm trying to execute this:

$ npm install express --save

And I'm getting this log:

npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to http://npm.jibo.com:8080/express failed, reason: connect ETIMEDOUT 10.0.0.106:8080 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'

As far I can see, my npm or node is pointing to a server of a client npm.jibo.com:8080, how can I reset that value?

I have no Idea what I'm doing with Node and npm because I'm new to this, and the first time I did something in my Mac was like "execute all this form jibo" and the project will work.

I have tried to look for a solution, but nothing points me in the right direction, probably because I'm asking wrong questions.

Thanks in advance for any help.

EDIT

Thanks for the help as some one pointed:

npm config set registry https://registry.npmjs.org/

That instruction solved the problem because the file .npmrc was pointing to npm.jibo.com:8080.

Thanks for the help.

Thanks to the help of the community.

The solution is here:

"npm config set registry https://registry.npmjs.org/" is not working in windows bat file

And my /Users/<>/.npmrc file was pointing as far I understand to a private server repo.

Hope this help.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM