繁体   English   中英

无法安装node_modules npm安装错误

[英]Can't install node_modules npm install error

这是npm install之后显示给我的错误。 我从bitbucket成功克隆,我所做的就是git fetch带来另一个分支,但它没有给我带来任何好处,所以我做了git checkout branchname(分支名称在bitbucket中上传)

Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit 
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:291:12)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:182:13)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:961:16)
npm WARN addRemoteGit     at Socket.stream.socket.on (internal/child_process.js:380:11)
npm WARN addRemoteGit     at Socket.emit (events.js:182:13)
npm WARN addRemoteGit     at Pipe._handle.close (net.js:598:12)
npm WARN addRemoteGit  git+https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk.git#2.7.0 resetting remote /Users/francocoronel/.npm/_git-remotes/git-https-github-com-mapsplugin-cordova-plugin-googlemaps-sdk-git-2-7-0-324aac43 because of error: { Error: Command failed: git config --get remote.origin.url
npm WARN addRemoteGit 
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:291:12)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:182:13)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:961:16)
npm WARN addRemoteGit     at Socket.stream.socket.on (internal/child_process.js:380:11)
npm WARN addRemoteGit     at Socket.emit (events.js:182:13)
npm WARN addRemoteGit     at Pipe._handle.close (net.js:598:12)
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git config --get remote.origin.url' }
npm WARN deprecated cordova-plugin-contacts@3.0.1: This plugin has been deprecated

解决了它的运行问题: npm install -g npm

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM