Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Private NPM: How can the latest version of a module be installed?

Using private npm, common commands seem not to work:

  • npm install without a specific @version :: issue

  • npm outdated :: issue

  • npm update :: issue

  • npm view <private-package-name> versions :: (haven't found issue yet)

    • also note that npm v, npm show, and npm info are aliases that likewise don't work

Frequently, I will not know the latest version of a private module my team maintains. I would fall back on one of the commands listed above, but they seem inoperative. How can I install a package without knowing the latest version?

like image 798
1252748 Avatar asked Nov 17 '16 17:11

1252748


1 Answers

If I understand your question, installing latest package would be:

npm install <package_name>@latest --save
like image 117
jettpleyn Avatar answered Oct 16 '22 23:10

jettpleyn