npm install 后报错
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects 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:UsersAppDataLocal
pm-cache_logs?1-07-22T03_30_02_444Z-debug.log
解决:
git config --globalurl."https://".insteadOfgit://
npm cache clean --force

本文讲述了在尝试安装npm包时遇到的128错误,焦点在于git访问权限问题。解决方法包括配置全局URL和清理npm缓存。
1万+

被折叠的 条评论
为什么被折叠?



