npm install from Git in a specific version

The accepted answer did not work for me. Here’s what I’m doing to pull a package from github:

npm install --save "git://github.com/username/package.git#commit"

Or adding it manually on package.json:

"dependencies": {
  "package": "git://github.com/username/package.git#commit"
}

Leave a Comment