Manon.icu

I'm here to make you a better developer by teaching you everything I know about building for the web.

Published 2022-04-01

Node.js - npm & cli options

npm

npmNode.js Package Manager,为 node.js 提供在线软件包、模块存储库,提供了命令行作为 node.js 的版本管理和依赖管理。

Nrqk6V

使用 npm 安装模块

# npm install <module name>

npm install express

全局安装

# 使用 -g 或者 global全局安装模块
npm install express -g

卸载模块

#npm uninstall <module name>

npm uninstall express

搜索模块

# npm search <module name>

npm search express

显示当前安装模块

npm ls

命令行选项

mwBfwR

Comments

No Comments!