From 8baa56ac586f8321e3dd35c420507338da2d5172 Mon Sep 17 00:00:00 2001 From: xuhuajiao <664131586@qq.com> Date: Mon, 28 Sep 2026 16:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 1 + README.md | 2 +- package.json | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..e9ee3cb --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true \ No newline at end of file diff --git a/README.md b/README.md index 97d8303..9c13044 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ ```bash # 安装依赖 -npm install +npm install / npm install --legacy-peer-deps 建议 # 开发模式(默认端口 8080) npm run serve diff --git a/package.json b/package.json index 8cfd07c..542d0ab 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,8 @@ "vuex": "^3.1.2" }, "devDependencies": { + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.21.0", "@vue/cli-plugin-babel": "^4.2.0", "@vue/cli-plugin-eslint": "^4.2.0", "@vue/cli-service": "^4.2.0", @@ -31,7 +33,7 @@ "babel-plugin-transform-remove-console": "^6.9.4", "eslint": "^6.7.2", "eslint-plugin-vue": "^6.1.2", - "sass": "^1.25.0", + "sass": "^1.77.8", "sass-loader": "^8.0.2", "vue-awesome-swiper": "^3.1.3", "vue-template-compiler": "^2.6.11"