背景
某一次安装插件时出现如下错误提示
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/hexo failed, reason: connect ETIMEDOUT 104.16.27.35:443 |
解决
执行命令强制清除NPM缓存
npm cache clear --force
再执行命令重新安装一次NPM
npm install npm
或者
先删除根目录下的
package-lock.json
文件再执行命令安装
verify
npm cache verify
最后执行命令启动bundler
npm install -g parcel-bundler
两种方法均有效
若第一种方法不起效,可使用第二种方法!!
本文链接: https://senorui.top/posts/359e.html
版权声明: 本站所有文章除特别声明外,均采用【CC BY-NC-ND 4.0】国际许可协议,若转载请注明出处!