How to install an npm package from GitHub directly?

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

    Try this command

     npm install github:[Organisation]/[Repository]#[master/BranchName] -g
    

    this command worked for me.

     npm install github:BlessCSS/bless#3.x -g
    

提交回复
热议问题