Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NPM install from Github, ambiguous argument

Tags:

git

node.js

I am trying to install from a private github repo. The first 3 private repositories install just fine. The final one errors out error shown below. I have permission to access, pull from, and push to the repo. I have tried removing the version number but I get the same error with "ambiguous argument 'master'." The other 3 repositories have the same format for the install command.

PS C:\Users\shutez\Documents\Simple Emotion\Code\sedemo.tk> npm install git+ssh://[email protected]:SimpleEmotion/node-call
-analytics.git#0.4.1
npm ERR! Failed resolving git HEAD ([email protected]:SimpleEmotion/node-call-analytics.git) fatal: ambiguous argument '0.4
.1': unknown revision or path not in the working tree.
npm ERR! Failed resolving git HEAD ([email protected]:SimpleEmotion/node-call-analytics.git) Use '--' to separate paths fro
m revisions, like this:
npm ERR! Failed resolving git HEAD ([email protected]:SimpleEmotion/node-call-analytics.git) 'git <command> [<revision>...]
 -- [<file>...]'
npm ERR! Failed resolving git HEAD ([email protected]:SimpleEmotion/node-call-analytics.git)
npm ERR! Error: Command failed: fatal: ambiguous argument '0.4.1': unknown revision or path not in the working tree.
npm ERR! Use '--' to separate paths from revisions, like this:
npm ERR! 'git <command> [<revision>...] -- [<file>...]'
npm ERR!
npm ERR!     at ChildProcess.exithandler (child_process.js:647:15)
npm ERR!     at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR!     at maybeClose (child_process.js:753:16)
npm ERR!     at Process.ChildProcess._handle.onexit (child_process.js:820:5)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js"
 "install" "git+ssh://[email protected]:SimpleEmotion/node-call-analytics.git#0.4.1"
npm ERR! cwd C:\Users\shutez\Documents\Simple Emotion\Code\sedemo.tk
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code 128
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\shutez\Documents\Simple Emotion\Code\sedemo.tk\npm-debug.log
npm ERR! not ok code 0
like image 527
Zachary Shute Avatar asked Jun 04 '15 17:06

Zachary Shute


1 Answers

Your fix is simple.

$ npm update -g npm

Your npm is out of date. Your log says you're using 1.4.9 and the latest version is 2.11.0.

Cheers!

like image 156
Chev Avatar answered Oct 04 '22 16:10

Chev