-
To the global computer system installation environment, the computer can be used in any position
-
npm i 包名 -g 安装 npm uninstall 包名 -g 卸载
-
-
Environment can only be used to install the project in the current directory
-
npm init 初始化npm管理文件 pacgage.json
-
Project relies only be used in the current project, on the line need to rely on this
-
npm i 包名 --save npm install 包名 -S npm install 包名@x.x.x -S 卸载 npm uninstall 包名 --save npm uninstall 包名 -S
-
Development relies only be used in the current project, on the line, do not need to rely on the
-
npm install 包名 --save-dev npm install 包名 -D
-
-
View package
-
npm list 列出所有已有包 npm outdated 版本对比 npm info 查看当前包概要信息 npm view 包名 versions 查看包历史版本列表
-
-
And install any dependencies
-
npm install 安装package.json里面指定的所有包
-
-
Select source
-
npm install nrm -g 安装选择源的工具包 nrm ls 查看所有源 nrm test 测试所有源 nrm use 切换源名
-
npm specified
Guess you like
Origin blog.csdn.net/weixin_46389498/article/details/104781618
Recommended
Ranking