我是靠谱客的博主 懦弱嚓茶,这篇文章主要介绍npm 命令,现在分享给大家,希望可以做个参考。

  • npm help      查看使用帮助  (npm 命令 --help  查看指定命令的使用帮助)
  • npm init 初始化                      (npm init -y           跳过向导,快速生成)
  • npm install (npm i 简写)     一次性将dependencies选项中依赖项全部安装
  • npm install+包名  (npm i + 包名) 只下载
  • npm install --save +包名 (npm i --s +包名) 下载并保存依赖项
  • npm uninstall + 包名 (npm un +包名)           卸载,依赖项依旧保留
  • npm uninstall --save + 包名(npm un -s+包名)依赖项和包都删除

 

 

 

最后

以上就是懦弱嚓茶最近收集整理的关于npm 命令的全部内容,更多相关npm内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(128)

评论列表共有 0 条评论

立即
投稿
返回
顶部