extjssencha-cmd

Sencha cmd returning 'Fashion build exited with code : 2' error while running 'sencha app watch' - what should I do?


Sencha cmd, extJs 7: Fashion build exited with code : 2

I'm new to ExtJS, I was trying to use sencha cmd to create a project in a vagrant linux vm hosted on mac os (m2 chip). But I got errors while doing sencha app watch

My steps:

  1. fully install sencha cmd + all extensions. ./SenchaCmd-7.6.0.87-linux-amd64.sh -Dall=true -q
  2. initial project sencha app init --ext@7.6.0 --classic MyApp
  3. compile development 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

My env:

Ubuntu 22.04.1 LTS

node : v14.19.0

npm : 6.14.16

java :openjdk version "11.0.19" 2023-04-18 LTS

ruby: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [aarch64-linux-gnu]

I've also tried installed a macOS version on my local machine and everything's working fine. The error only appeared in the vm env. Thanks a lot in advance!


Solution

  • Replace the node that the Sencha cmd bundled with the node that installed in my vm solves my issue:

    cp /usr/bin/node /root/bin/Sencha/Cmd/7.6.0.87/bin/linux-x64/node