We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e37957a commit 84fbe48Copy full SHA for 84fbe48
docs/develop-tool/npm.md
@@ -3,6 +3,7 @@
3
## NPM的使用
4
5
6
+### 常用指令
7
8
```bash
9
## 登录
@@ -20,13 +21,23 @@ npm install xxx -D
20
21
npm install xxx -S
22
npm install xxx -g
23
npm install xxx@3.0.0
-npm
24
+npm install xxx -save
25
+
26
27
## 更新模块
28
npm update xxx
29
-
30
+## 推送私有包,可以在package.json中设置private
31
+npm publish
32
33
## 发布npm包
34
npm publish --access public
-```
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