From 199771997d12e40979cdd660565b89a0f65ae3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Wed, 1 Apr 2026 16:33:55 +0800 Subject: [PATCH] =?UTF-8?q?update=20npm=20=E5=8D=87=E7=BA=A7=E5=88=B0=20pn?= =?UTF-8?q?pm=20=E6=9B=B4=E7=AC=A6=E5=90=88=E7=8E=B0=E5=9C=A8=E6=8A=80?= =?UTF-8?q?=E6=9C=AF=E6=A0=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- package.json | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 06f3760..3dc817b 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/package.json b/package.json index 2649be4..4910367 100644 --- a/package.json +++ b/package.json @@ -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",