How to install an npm package from GitHub directly?

后端 未结 15 2389
失恋的感觉
失恋的感觉 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:38

    If git is not installed, we can try

    npm install --save https://github.com/Amitesh/gulp-rev-all/tarball/master
    

提交回复
热议问题