zoukankan      html  css  js  c++  java
  • npm总结

    1.npm install -g 模块                全局安装                                      

    2.npm install 模块@version       安装具体摸个版本的模块                              

    3.npm uninstall 模块                 卸载某个模块            

    4.npm ls 模块                           查看安装的模块及依赖                  

    5.npm info 模块                        查看这个模块的所有信息               

    6.npm bugs 模块                          查看包的bugs历史,会直接链接到github上                      

    7.npm start/自定义命令                  执行package.json的start/或其他的命令    

    8.npm update moduleName          更新一个包

    包的运用:

    1.npm link                                   将包作为全局的应用

    2.npm search packageName          发布一个包的时候,检查这个包名是否存在

    3.npm ddp                                    删除重复依赖(对于大型的项目很重要)

    4.查看内存中存储的module,require的时候会加载包

    npm cache add <tarball file>

    npm cache add <folder>

    npm cache add <tarball url>

    npm cache add <name>@<version>

    npm cache ls [<path>]

    npm cache clean [<path>]

  • 相关阅读:
    129. Sum Root to Leaf Numbers
    113. Path Sum II
    114. Flatten Binary Tree to Linked List
    112. Path Sum
    100. Same Tree
    300. Longest Increasing Subsequence
    72. Edit Distance
    自定义js标签库
    JS 实现Table相同行的单元格自动合并示例代码
    mysql 高版本only_full_group_by 错误
  • 原文地址:https://www.cnblogs.com/jay--zhang/p/6255909.html
Copyright © 2011-2022 走看看