Node.js npm错误/usr/bin/git ls remote-h-tssh://git@github.com/node_modules/cordova.git
我无法运行Node.js npm错误/usr/bin/git ls remote-h-tssh://git@github.com/node_modules/cordova.git,node.js,git,cordova,github,Node.js,Git,Cordova,Github,我无法运行npm install命令,它一直向我提供以下错误: Error while executing: /usr/bin/git ls-remote -h -t ssh://git@github.com/node_modules/cordova.git ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct acces
npm install
命令,它一直向我提供以下错误:
Error while executing:
/usr/bin/git ls-remote -h -t ssh://git@github.com/node_modules/cordova.git
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exited with error code: 128
找不到此github链接:
git@github.com/node_modules/cordova.git
我尝试卸载然后重新安装节点
&npm
,但仍然收到相同的错误消息
有什么原因吗
更新
问题是cordova,更新cordova解决了此问题
npm icordova@latest
首先确保ssh-Tgit@github.com
确实有效,这意味着您确实创建并注册了相关的id\u rsa(.pub)SSH密钥
其次,检查完整的npm install
命令(即在npm install
之后输入的参数),因为该命令不存在,也不存在
试试看
尽管使用最新版本之前存在问题:
OP确认:
问题是cordova,更新cordova修复了此问题:npm icordova@latest
好的,这实际上解决了npm卸载-g cordova的问题,但是我现在在构建平台时遇到了错误。
FormData()
不接受正文上的数字。append()
我想更新后的FormData()
可能会更改最新cordova版本中允许的值?@EfosaSylvesterOmorogbe(如中)@EfosaSylvesterOmorogbe,但最好作为一个新问题来解决
npm uninstall -g cordova
npm install -g cordova@latest