|
|
| 第173行: |
第173行: |
| npm owner rm<user>[<@scope>/]<pkg> | | npm owner rm<user>[<@scope>/]<pkg> |
| npm owner ls [<@scope>/]<pkg></syntaxhighlight>|$|/home/kangkk}} | | npm owner ls [<@scope>/]<pkg></syntaxhighlight>|$|/home/kangkk}} |
|
| |
| == 命令 ==
| |
| === config ===
| |
| {{Shc_out|<syntaxhighlight lang="bash">
| |
| npm config edit</syntaxhighlight>|<syntaxhighlight lang="bash">;;;;
| |
| ; npm userconfig file: /Users/kangjian/.npmrc
| |
| // ...
| |
| ...
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| //
| |
|
| |
| {{Shc_out|<syntaxhighlight lang="bash">
| |
| npm who am i</syntaxhighlight>|<syntaxhighlight lang="bash">kangjian
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
| //
| |
| {{Shc_out|<syntaxhighlight lang="bash">
| |
| npm config set strict-ssl false</syntaxhighlight>|<syntaxhighlight lang="bash">
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
| //
| |
| {{Shc_out|<syntaxhighlight lang="bash">
| |
| npm cache clean--force</syntaxhighlight>|<syntaxhighlight lang="bash">
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| === version ===
| |
| 修复或小的模块逻辑更改。
| |
| {{shc|<syntaxhighlight lang="bash">
| |
| npm version patch</syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| 功能逻辑变更。
| |
| {{shc|<syntaxhighlight lang="bash">
| |
| npm version minor</syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| 大版本改动,不再向下兼容。
| |
| {{shc|<syntaxhighlight lang="bash">
| |
| npm version major</syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| === ls ===
| |
| 查看命令。如查看某组件的版本信息。
| |
|
| |
| {{Shc_out|<syntaxhighlight lang="bash">
| |
| npm ls express</syntaxhighlight>|<syntaxhighlight lang="bash">
| |
| kangkk-check-imported-file@0.0.6 /Users/kangjian/360/dora/td-deadfile
| |
| └── express@4.18.2
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
| 除此之外还可以通过添加额外的参数检查深度。
| |
|
| |
| {{Shc_out|<syntaxhighlight lang="bash">
| |
| npm ls --depth=0</syntaxhighlight>|<syntaxhighlight lang="bash">
| |
| kangkk-check-imported-file@0.0.6 /Users/kangjian/360/dora/td-deadfile
| |
| ├── @semantic-release/changelog@6.0.1
| |
| ├── @semantic-release/git@10.0.1
| |
| ...
| |
| ├── table@5.4.6
| |
| ├── util@0.12.5
| |
| └── yargs@14.2.3
| |
| </syntaxhighlight>|$|/home/kangkk}}
| |
|
| |
|
| == other == | | == other == |