update npm 升级到 pnpm 更符合现在技术栈

This commit is contained in:
疯狂的狮子Li
2026-04-01 16:33:55 +08:00
parent 6c395bb65b
commit 199771997d
2 changed files with 7 additions and 4 deletions
+3 -3
View File
@@ -20,13 +20,13 @@
```bash
# 安装依赖
npm install --registry=https://registry.npmmirror.com
pnpm install --registry=https://registry.npmmirror.com
# 启动服务
npm run dev
pnpm dev
# 构建生产环境
npm run build:prod
pnpm build:prod
# 前端访问地址 http://localhost:80
```
+4 -1
View File
@@ -67,9 +67,12 @@
"vitest": "4.0.18",
"vue-tsc": "^3.2.5"
},
"pnpm": {
"onlyBuiltDependencies": ["@parcel/watcher", "es5-ext", "esbuild"]
},
"engines": {
"node": ">=20.19.0",
"npm": ">=8.19.0"
"pnpm": ">=10.0.0"
},
"browserslist": [
"Chrome >= 87",