Installing NPM from Github, an ambiguous argument

I am trying to install from a private github repository. The first 3 private repositories install just fine. The last error displays the error shown below. I have permission to access, pull and click on repo. I tried to remove the version number, but I get the same error with the "ambiguous argument" master. "The remaining 3 repositories have the same format for the install command.

PS C:\Users\shutez\Documents\Simple Emotion\Code\sedemo.tk> npm install git+ssh://git@github.com:SimpleEmotion/node-call
-analytics.git#0.4.1
npm ERR! Failed resolving git HEAD (git@github.com: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 (git@github.com:SimpleEmotion/node-call-analytics.git) Use '--' to separate paths fro
m revisions, like this:
npm ERR! Failed resolving git HEAD (git@github.com:SimpleEmotion/node-call-analytics.git) 'git <command> [<revision>...]
 -- [<file>...]'
npm ERR! Failed resolving git HEAD (git@github.com: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://git@github.com: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
+5
source share
3 answers

Your fix is ​​simple.

$ npm update -g npm

Your npm is out of date. Your journal says that you are using 1.4.9, and the latest version is 2.11.0.

Hooray!

+4
source

Repo does not exist

, npm install , , package.json , .

package.json , :

"react-native-app-intro": "joshuapinter/react-native-app-intro#patch-1",

, patch-1 .

, , , Pull , Pull Request, patch-1, . package.json, .

, , npm , , , , , .

+2

Yes, a very cryptic message, took a little time and found this post to find out that the problem is in the missing repo ...

0
source

All Articles