[+] 增加 git pip npm bash
This commit is contained in:
8
init-npm.sh
Normal file
8
init-npm.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 检查 npm 是否安装
|
||||
if command -v npm &> /dev/null; then
|
||||
echo "npm 已安装,正在配置镜像源..."
|
||||
npm config set registry https://mirrors.martin98.com/repository/npm-group/
|
||||
echo "镜像源配置完成。"
|
||||
fi
|
||||
Reference in New Issue
Block a user