安装github上的插件,有无更简易的方法?



  • 我的安装方法是
    git clone xxxxxx xxxxx
    npm link
    cd /xxxxx/node_modules/
    npm link xxxxx
    听说有简易方法



  • 0_1502779163894_f7326201-e240-4895-83d8-f7df3026886c-image.png

    npm install (with no args, in package dir)
    npm install [<@scope>/]<pkg>
    npm install [<@scope>/]<pkg>@<tag>
    npm install [<@scope>/]<pkg>@<version>
    npm install [<@scope>/]<pkg>@<version range>
    npm install <folder>
    npm install <tarball file>
    npm install <tarball url>
    npm install <git:// url>
    npm install <github username>/<github project>
    
    aliases: i, isntall
    common options: [--save|--save-dev|--save-optional] [--save-exact]
    
    

    希望对你有帮助! 感谢!



  • 谢大佬2333333


 

Powered by NodeBB © 2018 PA Team All Rights Reserved Accelerated by UPYUN . 苏ICP备17002503号-2