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
解決辦法:
執(zhí)行如下命令:
git config --global http.sslverify "false"
再執(zhí)行 ??npm install??
如果上述命令執(zhí)行完后,還是報那個錯誤,繼續(xù)執(zhí)行如下命令
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
到此這篇關(guān)于解決npm ERR! code 128的錯誤問題的文章就介紹到這了,更多相關(guān)npm ERR! code 128內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
- npm?ERR!Cannot?read?properties?of?null(reading?'pickAlgorithm')報錯問題解決
- npm?ERR!?code?E404在vscode安裝插件時報錯的兩種解決方案
- npm?ERR!?Node.js?v20.11.0錯誤的解決
- 用npm install時報錯node-sass npm ERR command failed問題的解決方法
- 啟動myvue報錯npm?ERR!?code?ENOENT?npm?ERR!?syscall?open的解決辦法
- 解決Node.js包管理器安裝報錯npm?ERR!?code?1的問題
- 前端報錯npm ERR! cb() never called!問題解決辦法
- npm ERR! code ELIFECYCLE錯誤及解決方法
- node中npm ERR! network ‘proxy‘ 配置問題解決
相關(guān)文章
Vue2.0 v-for filter列表過濾功能的實現(xiàn)
今天小編就為大家分享一篇Vue2.0 v-for filter列表過濾功能的實現(xiàn),具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧2018-09-09詳解vue-router2.0動態(tài)路由獲取參數(shù)
本篇文章主要介紹了詳解vue-router2.0動態(tài)路由獲取參數(shù),小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2017-06-06Vue實現(xiàn)戶籍管理系統(tǒng)戶籍信息的添加與刪除方式
這篇文章主要介紹了Vue實現(xiàn)戶籍管理系統(tǒng)戶籍信息的添加與刪除方式,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-09-09Vue結(jié)合ElementUI上傳Base64編碼后的圖片實例
這篇文章主要介紹了Vue結(jié)合ElementUI上傳Base64編碼后的圖片實例,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-04-04