简体   繁体   中英

npm is showing errors while installing pacakages

Please view the errors in this I am new to web-development and while learning react.js and installing lite-server I faced this problem. Please help me rectify it.

Do the following changes:

1.Run these three commands:

npm config set proxy http://localhost:8080/
npm config set https-proxy http://localhost:8080/
npm config set strict-ssl false```

It would point to localhost:8080 and would configure it with the module.

For more info visit https://docs.npmjs.com/cli/config Once the above changes are done, run the following command:

  1. Now Run the following command: npm config edit

This will show the three statements which are entered above, you just need to remove it and save & close all windows and start.

Try this:

npm config set proxy http://localhost:8080

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