安装nodemon报错
文章目录
- 1 报错内容
- 2 修改方法
1 报错内容
npm error code ETIMEDOUT
npm error errno ETIMEDOUT
npm error network request to https://registry.npmjs.org/nodemon failed, reason:
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly. See: 'npm help config'
npm error A complete log of this run can be found in: C:\Users\kkkk\AppData\Local\npm-cache\_logs\2024-11-05T07_51_50_687Z-debug-0.log
2 修改方法
在终端中输入:
npm config rm proxy
npm config rm https-proxy
然后再次输入npm install -g nodemon
进行安装。