npm ERR! code 128的错误问题解决方法
解决npm ERR! code 128
1.问题描述
在使用npm install时提示以下错误:
2.解决方案
在cmd中输入
npm cache clean --force
在重新npm install即可
补充:npm install报错 code:128 和 Error: EPERM: operation not permitted
报错:
npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://git@github.com/adobe-webplatform/eve.git
npm ERR! git@github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Ailjx\AppData\Local\npm-cache\_logs\2021-07-19T06_15_12_290Z-debug.log
解决办法:
执行如下命令:
git config --global http.sslverify "false"
再执行 npm install
如果上述命令执行完后,还是报那个错误,继续执行如下命令
git config --global url."https://".insteadOf git://
可以通过如下操作解决 npm 下载速度慢的问题
npm install --registry=https://registry.npm.taobao.org
Error: EPERM: operation not permitted问题
删除C:\Users\用户名\.npmrc
文件就ok
到此这篇关于解决npm ERR! code 128的错误问题的文章就介绍到这了,更多相关npm ERR! code 128内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
相关文章
Vue中computed、methods与watch的区别总结
这篇文章主要给大家介绍了关于Vue中computed、methods与watch区别的相关资料,文中通过示例代码介绍的非常详细,对大家学习或者使用Vue具有一定的参考学习价值,需要的朋友们下面来一起学习学习吧2019-04-04Vue导入excel文件的两种方式(form表单和el-upload)
最近开发遇到一个点击导入按钮让excel文件数据导入的需求,下面这篇文章主要给大家介绍了关于Vue导入excel文件的两种方式,分别是form表单和el-upload两种方法,需要的朋友可以参考下2022-11-11html页面引入vue组件之http-vue-loader.js解读
这篇文章主要介绍了html页面引入vue组件之http-vue-loader.js解读,具有很好的参考价值,希望对大家有所帮助。如有错误或未考虑完全的地方,望不吝赐教2023-04-04
最新评论