first commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# 2026-09-15 工作记录
|
||||
|
||||
## npm run dev:h5 报错修复
|
||||
|
||||
### 问题
|
||||
运行 时报错:
|
||||
|
||||
|
||||
### 原因
|
||||
nvm 默认 Node.js 版本为 **14.21.3**,但 CLI 依赖的 包使用了 (nullish coalescing assignment)运算符,该语法需要 **Node.js 15+**。
|
||||
|
||||
### 解决
|
||||
将 nvm 默认版本切换至 Node 18:
|
||||
|
||||
切换后 正常运行,H5 开发服务器监听在 **http://localhost:5174**。
|
||||
|
||||
### 建议
|
||||
- 在项目根目录添加 文件,内容为 ,确保后续协作时自动使用正确版本
|
||||
Reference in New Issue
Block a user