laoduDYM's Studio.

npm常用操作

包括:搜索、配置查看、 安装、 卸载 、仓库替换

Word count: 130Reading time: 1 min
2020/06/22 Share
1
2
3
4
5
6
7
8
9
10
11
npm config set registry http://registry.npm.taobao.org  //将registry设置为淘宝镜像
npm config get registry //查看仓库
npm config set prefix <路径> //更改npm全局安装路径
npm cache clean //清除缓存
npm install //安装模块
npm uninstall //卸载模块
npm search //查询模块
npm list //查看模块版本号
--save //可选参数将依赖写入json文件
npm config list //查看基本配置
npm config list -l //查看所有配置

本文作者:laoduDYM

原文链接:http://laodudym.gitee.io/2020/06/22/npm常用操作

发表日期:2020-06-22 17:51:51

更新日期:2020-06-23 10:39:40

版权声明:本文采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可

CATALOG