Skip to content

Commit 84fbe48

Browse files
author
爱吃抹茶不吃茶
committed
feat: update
1 parent e37957a commit 84fbe48

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

docs/develop-tool/npm.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## NPM的使用
44

55

6+
### 常用指令
67

78
```bash
89
## 登录
@@ -20,13 +21,23 @@ npm install xxx -D
2021
npm install xxx -S
2122
npm install xxx -g
2223
npm install xxx@3.0.0
23-
npm
24+
npm install xxx -save
25+
2426

2527
## 更新模块
2628
npm update xxx
2729

28-
30+
## 推送私有包,可以在package.json中设置private
31+
npm publish
2932

3033
## 发布npm包
3134
npm publish --access public
32-
```
35+
36+
## 标签
37+
npm publish --tag xx
38+
```
39+
40+
41+
### package.json字段解析
42+
43+
参考:https://blog.csdn.net/tangxiujiang/article/details/119977698

0 commit comments

Comments
 (0)