build: 补充 Node.js 版本要求配置
在 package.json 中添加 engines 字段,指定项目所需 Node.js 版本不低于 20.10.0,确保开发和构建环境版本一致。
This commit is contained in:
1 parent
c10ad236d8
commit
06373a35a2
1 file changed
+3
@@ -5,6 +5,9 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "梦象虚拟电厂集中门户 - 多系统链接统一管理平台",
|
"description": "梦象虚拟电厂集中门户 - 多系统链接统一管理平台",
|
||||||
"author": "上海梦象智能科技有限公司",
|
"author": "上海梦象智能科技有限公司",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=20.10.0"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
Reference in new issue
Block a user