Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build on MacOS with Apple Silicon chips due to unsupported platform by cross-env nodejs package #97

Closed
bowenliang123 opened this issue Sep 18, 2023 · 3 comments

Comments

@bowenliang123
Copy link
Contributor

bowenliang123 commented Sep 18, 2023

Version: 0.7.5-SNAPSHOT
Branch: master
Machine: Macbook Pro 14' 2021 (Apple M1 Pro)

Failed to build source code on MacOS with M1 chips.

Steps:

  1. download source code on master branch
  2. run sh assembly/bin/supersonic-build.sh, as instructed by wiki
  3. Failed to finish the build
x launchers-standalone-0.7.5-SNAPSHOT/llmparser/sql/prompt_maker.py
x launchers-standalone-0.7.5-SNAPSHOT/llmparser/sql/output_parser.py
x launchers-standalone-0.7.5-SNAPSHOT/llmparser/sql/examples_reload_run.py
cp: /Users/bw/dev/supersonic/assembly/build/webapp/*: No such file or directory
assembly/bin/supersonic-build.sh: line 48: ../../launchers/chat/target/classes/webapp/supersonic.config.json: No such file or directory
assembly/bin/supersonic-build.sh: line 48: ../../launchers/semantic/target/classes/webapp/supersonic.config.json: No such file or directory

Related failures when installing npm packages:

../../node_modules/.pnpm/esbuild@0.7.22/node_modules/esbuild: Running postinstall script, failed in 62ms
.../esbuild@0.7.22/node_modules/esbuild postinstall$ node install.js
│ Unsupported platform: darwin arm64 LE
└─ Failed in 62ms at /Users/bw/dev/supersonic/webapp/node_modules/.pnpm/esbuild@0.7.22/node_modules/esbuild
../../node_modules/.pnpm/esbuild@0.12.15/node_modules/esbuild: Running postinstall script...
 ELIFECYCLE  Command failed with exit code 1.

> supersonic-chat-sdk@0.0.0 build /Users/bw/dev/supersonic/webapp/packages/chat-sdk
> npm run clean && npm run build-es

The corss-env package has been deprecated since Jan 2021. kentcdodds/cross-env#257
It seems it does not support M1 chips.

@bowenliang123 bowenliang123 changed the title Unable to build on M1 MacOS due to unsupported platform by cross-env nodejs package Fail to build on MacOS with M1 chips due to unsupported platform by cross-env nodejs package Sep 18, 2023
@bowenliang123 bowenliang123 changed the title Fail to build on MacOS with M1 chips due to unsupported platform by cross-env nodejs package Fail to build on MacOS with Apple Silicon chips due to unsupported platform by cross-env nodejs package Sep 18, 2023
@williamhliu
Copy link
Collaborator

After upgrading the cross-env version to 0.7.3, this issue has been resolved. Thank you for your feedback. #104

@bowenliang123
Copy link
Contributor Author

Thanks for the help and improvements. @williamhliu

@motdotla
Copy link

cross-env has been in maintenance mode for 4 years with no new features. you guys might find dotenvx a useful and more up to date alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants