npm的安装

  • 安装xxx模块到当前文件夹的node_modules
    npm install xxx
  • 全局安装模块
    npm install -g xxx
    其中,可以选择是否将模块写入package.json中
  • 安装但不写入
    npm install xxx
  • 安装并写入到 dependencies 中
    npm install xxx --save
  • 安装并写入到 devDependencies 中
    npm install xxx --save-dev
    附图:
    关于npm的安装卸载
    npm的卸载
  • 卸载xxx模块
    npm uninstall xxx
  • 卸载全局木块xxx
    npm uninstall -g xxx

其他可以去找官方文档,或者百度。

相关文章:

  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-10-12
  • 2021-12-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2021-06-18
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
相关资源
相似解决方案