当前位置:首页 > 编程笔记 > 正文
已解决

启动项目报错,找不到模块 coa/compile.js

来自网友在路上 184884提问 提问时间:2023-10-09 10:12:24阅读次数: 84

最佳答案 问答题库848位专家为你答疑解惑

启动项目报错:

Exit code: 1
Command: start /B node compile.js & node compile.js
Arguments: 
Directory: uber-web/node_modules/coa
Output:
/bin/sh: 1: start: not found
internal/modules/cjs/loader.js:905throw err;^Error: Cannot find module 'uber-web/node_modules/coa/compile.js'at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)at Function.Module._load (internal/modules/cjs/loader.js:746:27)at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)at internal/main/run_main_module.js:17:47 {

解决办法:
在package.json文件中添加:

"coa": "2.0.2"

删除node_modules,重新npm i --legacy-peer-deps,再运行即可

查看全文

99%的人还看了

猜你感兴趣

版权申明

本文"启动项目报错,找不到模块 coa/compile.js":http://eshow365.cn/6-17733-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!