npm ERR! code 128的錯(cuò)誤問(wèn)題解決方法
解決npm ERR! code 128
1.問(wèn)題描述
在使用npm install時(shí)提示以下錯(cuò)誤:
2.解決方案
在cmd中輸入
npm cache clean --force
在重新npm install即可
補(bǔ)充:npm install報(bào)錯(cuò) code:128 和 Error: EPERM: operation not permitted
報(bào)錯(cuò):
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í)行完后,還是報(bào)那個(gè)錯(cuò)誤,繼續(xù)執(zhí)行如下命令
git config --global url."https://".insteadOf git://
可以通過(guò)如下操作解決 npm 下載速度慢的問(wèn)題
npm install --registry=https://registry.npm.taobao.org
Error: EPERM: operation not permitted問(wèn)題
刪除??C:\Users\用戶(hù)名\.npmrc??
文件就ok
到此這篇關(guān)于解決npm ERR! code 128的錯(cuò)誤問(wèn)題的文章就介紹到這了,更多相關(guān)npm ERR! code 128內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
- npm?ERR!Cannot?read?properties?of?null(reading?'pickAlgorithm')報(bào)錯(cuò)問(wèn)題解決
- npm?ERR!?code?E404在vscode安裝插件時(shí)報(bào)錯(cuò)的兩種解決方案
- npm?ERR!?Node.js?v20.11.0錯(cuò)誤的解決
- 用npm install時(shí)報(bào)錯(cuò)node-sass npm ERR command failed問(wèn)題的解決方法
- 啟動(dòng)myvue報(bào)錯(cuò)npm?ERR!?code?ENOENT?npm?ERR!?syscall?open的解決辦法
- 解決Node.js包管理器安裝報(bào)錯(cuò)npm?ERR!?code?1的問(wèn)題
- 前端報(bào)錯(cuò)npm ERR! cb() never called!問(wèn)題解決辦法
- npm ERR! code ELIFECYCLE錯(cuò)誤及解決方法
- node中npm ERR! network ‘proxy‘ 配置問(wèn)題解決
相關(guān)文章
Vue2.0 v-for filter列表過(guò)濾功能的實(shí)現(xiàn)
今天小編就為大家分享一篇Vue2.0 v-for filter列表過(guò)濾功能的實(shí)現(xiàn),具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧2018-09-09Vue如何實(shí)現(xiàn)iframe的上一步、下一步操作
這篇文章主要介紹了Vue如何實(shí)現(xiàn)iframe的上一步、下一步操作,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2022-06-06詳解vue-router2.0動(dòng)態(tài)路由獲取參數(shù)
本篇文章主要介紹了詳解vue-router2.0動(dòng)態(tài)路由獲取參數(shù),小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-06-06Vue實(shí)現(xiàn)戶(hù)籍管理系統(tǒng)戶(hù)籍信息的添加與刪除方式
這篇文章主要介紹了Vue實(shí)現(xiàn)戶(hù)籍管理系統(tǒng)戶(hù)籍信息的添加與刪除方式,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2022-09-09Vue結(jié)合ElementUI上傳Base64編碼后的圖片實(shí)例
這篇文章主要介紹了Vue結(jié)合ElementUI上傳Base64編碼后的圖片實(shí)例,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2022-04-04vue中的stylus及stylus-loader版本問(wèn)題
這篇文章主要介紹了vue中的stylus及stylus-loader版本問(wèn)題,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。如有錯(cuò)誤或未考慮完全的地方,望不吝賜教2022-08-08