创建uniapp项目后,上午的时候还能正常运行,下午再运行的时候就报错了,错误如下:
Error: Cannot find module @rollup/rollup-win32-x64-msvc. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try npm i
again after removing both package-lock.json and node_modules directory.

1***@163.com
- 发布:2025-06-06 14:17
- 更新:2025-06-28 13:38
- 阅读:102
2 个回复
DCloud_UNI_yuhe
是不是你切换了 node 版本?使用的是hbuilderx项目还是新建的 cli 项目
jimmy2050
把hbuilder回退到上个版本就可以了