npm 在安装包时显示错误
npm is showing errors while installing pacakages
Please view the errors in this
我是网络开发的新手,在学习 react.js 和安装 lite-server 时遇到了这个问题。请帮我改正。
进行以下更改:
1.Run这三个命令:
npm config set proxy http://localhost:8080/
npm config set https-proxy http://localhost:8080/
npm config set strict-ssl false```
它将指向 localhost:8080 并将使用模块对其进行配置。
有关详细信息,请访问 https://docs.npmjs.com/cli/config
完成上述更改后,运行 以下命令:
- 现在运行以下命令:
npm config edit
这将显示上面输入的三个语句,您只需将其删除即可
并保存并关闭所有 windows 并开始。
试试这个:
npm config set proxy http://localhost:8080
Please view the errors in this 我是网络开发的新手,在学习 react.js 和安装 lite-server 时遇到了这个问题。请帮我改正。
进行以下更改:
1.Run这三个命令:
npm config set proxy http://localhost:8080/
npm config set https-proxy http://localhost:8080/
npm config set strict-ssl false```
它将指向 localhost:8080 并将使用模块对其进行配置。
有关详细信息,请访问 https://docs.npmjs.com/cli/config 完成上述更改后,运行 以下命令:
- 现在运行以下命令:
npm config edit
这将显示上面输入的三个语句,您只需将其删除即可 并保存并关闭所有 windows 并开始。
试试这个:
npm config set proxy http://localhost:8080