From a2e44839243da3ac021cb2ab3614fc5cf4f222d6 Mon Sep 17 00:00:00 2001 From: mick Date: Thu, 9 May 2024 16:23:40 +0800 Subject: [PATCH] =?UTF-8?q?npm=20=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node/npm.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 node/npm.md diff --git a/node/npm.md b/node/npm.md new file mode 100644 index 0000000..459a5b8 --- /dev/null +++ b/node/npm.md @@ -0,0 +1,17 @@ +

NPM 命令

+ +### 常用命令 + +```bash +# 查看当前用户 +npm who am i + +# 查看源地址 +npm config list + +# 切换源 +npm set registry https:// + +# 删除源 +npm config rm registry +```