【发布时间】:2018-09-07 03:11:42
【问题描述】:
我的 Windows 10 机器上同时安装了 Node 8.11 和 Node 4.7。当我在一个新项目中尝试使用 Node 8.11 运行“npm install”时,我收到以下错误:
npm ERR! Error while executing:
npm ERR! C:\Development\Git\2.16.2\bin\git.EXE ls-remote -h -t ssh://git@github.com/ev1stensberg/generator.git
npm ERR!
npm ERR! ssh_exchange_identification: Connection closed by remote host
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!
npm ERR! exited with error code: 128
如果我使用 Node 4.7,安装运行不会出错。我不确定我应该在新节点环境中“修复”什么以使其正常工作。
当我尝试npm config edit时,两个环境都显示相同的“.npmrc”文件
【问题讨论】: