当尝试运行adonis serve --dev
命令时,Adonis.js给出错误消息
这是我尝试在后端运行命令时的错误:
balveer@balveer-HP-Laptop-15-da0xxx:~/Downloads/test/blogbackend$ adonis serve --dev
SERVER STARTED
> Watching files for changes...
SyntaxError: Unexpected token '<<'
1 anonymous
/home/balveer/Downloads/test/blogbackend/node_modules/require-all/index.js:56
2 requireAll
/home/balveer/Downloads/test/blogbackend/node_modules/require-all/index.js:34
3 Config.syncWithFileSystem
/home/balveer/Downloads/test/blogbackend/node_modules/@adonisjs/framework/src/Config/index.js:49
Application crashed, make sure to kill all related running process, fix the issue and re-run the app
答案 0 :(得分:1)
导入配置文件/config/*.js
时出现此错误。
尝试控制这些不同的文件(搜索<<
)