Update .npmrc to remove 'use-node-version' and add node mirrors
All checks were successful
CI / cache-and-install (push) Successful in 2m27s

This commit is contained in:
严浩
2024-09-20 16:19:03 +08:00
parent 19243570dd
commit 8af97fb677
3 changed files with 9 additions and 3 deletions

View File

@ -19,6 +19,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- run: sed -i '/use-node-version/d' .npmrc
- uses: pnpm/action-setup@v4
name: Install pnpm
with:

7
.npmrc
View File

@ -1,4 +1,11 @@
registry=https://registry.npmmirror.com
registry=https://registry.npmjs.org/
registry=https://verdaccio.1-h.cc
# https://pnpm.io/zh/npmrc#node-mirrorltreleasedir
use-node-version=20.17.0
node-mirror:release=https://npmmirror.com/mirrors/node/
node-mirror:rc=https://npmmirror.com/mirrors/node-rc/
node-mirror:nightly=https://npmmirror.com/mirrors/node-nightly/
shamefully-hoist=true

View File

@ -95,8 +95,5 @@
"vite-plugin-vue-devtools": "^7.4.5",
"vitest": "^2.1.1",
"vue-tsc": "^2.1.6"
},
"engines": {
"node": ">=20.0.0"
}
}