git - NPM install from github using a tag -


i need npm install angular2 project git using tag tag = 6.0.0.

e.g.

git git@github.com:akveo/ng2-smart-table.git cd ng2-smart-table git checkout tags/v0.6.0-0 

how equivalent of :

  npm install --save package_name     npm install git@github.com:akveo/ng2-smart-table.git#v0.6.0-0  npm err! darwin 16.4.0 npm err! argv "/usr/local/cellar/node/6.5.0/bin/node" "/usr/local/bin/npm" "install" "git@github.com:akveo/ng2-smart-table.git#v0.6.0-0" npm err! node v7.0.0 npm err! npm  v3.10.8  npm err! unsupported url type: github.com:akveo/ng2-smart-table.git#v0.6.0-0 npm err!  npm err! if need help, may report error at: npm err!     <https://github.com/npm/npm/issues>  npm err! please include following file support request: 

npm allows installation using commit-ish tags on github:

npm install <git remote url>

for example:

npm install git+ssh://git@github.com:npm/npm.git#v1.0.27 npm install git+https://isaacs@github.com/npm/npm.git npm install git://github.com/npm/npm.git#v1.0.27 

note need specify protocol in url, e.g. git+https://.

documentation: https://docs.npmjs.com/cli/install


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -