Update ql-npm.sh

This commit is contained in:
yanyuwangluo 2024-03-03 09:39:08 +08:00 committed by GitHub
parent 81e1a0f2e4
commit 75f5f68ad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,4 +40,7 @@ selected_address=$(echo "${options[$choice-1]}" | awk -F'-' '{print $2}')
echo "registry=$selected_address" >> .npmrc echo "registry=$selected_address" >> .npmrc
echo "已将地址写入到.npmrc文件中。" echo "已将地址写入到.npmrc文件中。"
echo "当前npm源地址" cat .npmrc
# 查询并显示当前的npm源地址
echo "已选择的npm源地址是: $(npm config get registry)"