Blogger Information
Blog 42
fans 0
comment 0
visits 15680
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
0802npm常用指令
小言
Original
366 people have browsed it

1.安装模块

npm install xxx 或者 npm i xxx

2.全局安装

npm install xxx -g`

3.更新模块

查看所有可更新的包 npm outdated

更新包,ncu -u package_name

更新到指定版本的npm update jquery@2.1.0

4.使用镜像npm

使用npm镜像: npm install -g cnpm --registry=镜像域名地址

5.查看npm版本

npm -v

6.清除npm缓存

npm cache clean

7.查看是否有npm包要更新

npm outdated

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post