npm install报错 code:128

报的错误:

npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/nhn/raphael.git
npm ERR! [email protected]: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.

解决办法:

执行如下命令

git config --global Http.sslverify "false"

运行 npm install --reGIStry=https://registry.npm.taobao.org

--------一定确认一下是 taobao.org 

---------reGIStry=https://registry.npm.taobao.org

还报错 运行:

git config --global url."https://".insteadOf git://

 再重新npm install --reGIStry=https://registry.npm.taobao.org

你可能感兴趣的:(npm,前端,node.js)