How to install an npm package from GitHub directly?

后端 未结 15 2273
失恋的感觉
失恋的感觉 2020-11-22 06:48

Trying to install modules from github results in:

ENOENT error on package.json.

Easily reproduced using express:

15条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 07:39

    There's also npm install https://github.com/{USER}/{REPO}/tarball/{BRANCH} to use a different branch.

提交回复
热议问题