3***@qq.com
3***@qq.com
  • 发布:2023-03-06 15:55
  • 更新:2023-03-06 16:33
  • 阅读:369

cnpm run dev: h5 报错

分类:uni-app

tfw_new@4.3.0 dev:h5
cross-env NODE_ENV=development UNI_PLATFORM=h5 vue-cli-service uni-serve

E:\Desktop\tfw1\node_modules.store\@dcloudio+uni-cli-shared@2.0.0\node_modules\@dcloudio\uni-cli-shared\lib\util.js:7
const normalizePath = path => (isWin ? path.replace(/\/g, '/') : path)
^

TypeError: path.replace is not a function
at normalizePath (E:\Desktop\tfw1\node_modules.store\@dcloudio+uni-cli-shared@2.0.0\node_modules\@dcloudio\uni-cli-shared\lib\util.js:7:45)
at ErrorReport.report (E:\Desktop\tfw1\node_modules.store\@dcloudio+vue-cli-plugin-uni@2.0.0\node_modules\@dcloudio\vue-cli-plugin-uni\lib\error-reporting.js:44:11)
at report (E:\Desktop\tfw1\node_modules.store\@dcloudio+vue-cli-plugin-uni@2.0.0\node_modules\@dcloudio\vue-cli-plugin-uni\lib\error-reporting.js:144:24)
at process.<anonymous> (E:\Desktop\tfw1\node_modules.store\@dcloudio+vue-cli-plugin-uni@2.0.0\node_modules\@dcloudio\vue-cli-plugin-uni\lib\error-reporting.js:154:42)
at process.emit (node:events:520:28)
at process._fatalException (node:internal/process/execution:164:25)

2023-03-06 15:55 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com (作者)

我在浏览器找解决方法没有找到,请问有大佬指点一下么

YUANRJ

YUANRJ

请提供下测试工程和具体版本

要回复问题请先登录注册