extjs Sencha cmd返回“Fashion build exited with code:运行“ Sencha app watch”时出现“2”错误-我该怎么办?

mfpqipee  于 2023-06-05  发布在  其他
关注(0)|答案(1)|浏览(190)

Sencha cmd,extJs 7:Fashion build退出,代码如下:2
我是ExtJS的新手,我试图使用 Sencha cmd在一个托管在mac os(m2芯片)上的**vagrant linux vm中创建一个项目。但我在执行sencha app watch时出错
我的步骤:
1.完全安装 Sencha cmd +所有扩展。./SenchaCmd-7.6.0.87-linux-amd64.sh -Dall=true -q
1.初始项目sencha app init --ext@7.6.0 --classic MyApp
1.编译开发sencha app watch

......
[INF] Writing content to /opt/bip/release/development/MyApp/build/development/MyApp/app.json
/root/bin/Sencha/Cmd/7.6.0.87/bin/linux-x64/node/node: 2: Syntax error: Unterminated quoted string
[ERR] 
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Fashion build exited with code : 2
.....
.....
[ERR] /root/bin/Sencha/Cmd/7.6.0.87/plugin.xml:378: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/build-impl.xml:253: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/watch-impl.xml:87: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/build-impl.xml:292: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/sass-impl.xml:205: The following error occurred while executing this line:
/root/bin/Sencha/Cmd/7.6.0.87/ant/build/app/sass-impl.xml:240: com.sencha.exceptions.ExBuild: Fashion build exited with code : 2

我的环境:
Ubuntu 22.04.1 LTS
节点:v14.19.0
npm:6.14.16
java:openjdk版本“11.0.19”2023-04-18 LTS
ruby:ruby 3.0.2p107(2021-07-07修订版0 db 68 f0233)[aarch 64-linux-gnu]
我还尝试在本地机器上安装macOS版本,一切正常。错误仅出现在vm env中。非常感谢!

xxls0lw8

xxls0lw81#

彦国!
你也可以运行 Sencha app build,这样它就可以向你显示关于错误的更多细节;
如果错误仍然存在,您可能必须在代码中进行双重检查,此错误。就像我看到的。您的App.json文件带有带引号的字符串错误。
上一篇:Syntax error: Unterminated quoted string如果您打开该文件,它可能会在编辑器或IDE中显示错误。
希望能帮上忙!

相关问题