sCrypt-Inc / scryptTS-docs

https://docs.scrypt.io
12 stars 8 forks source link

add a tip for M2/M3 users #249

Closed xhliu closed 6 months ago

xhliu commented 6 months ago

at https://docs.scrypt.io/installation#prerequisite

Bad CPU type in executable

➜ helloworld git:(main) ✗ npx scrypt-cli compile /bin/sh: /Users/bjerkeset/code/helloworld/nodemodules/scryptlib/compiler/scryptc/mac/scryptc: Bad CPU type in executable

• Downloading sCrypt compiler: 1.19.2 ...

✔ Successfully downloaded. File Path: /Users/bjerkeset/code/helloworld/node_modules/scryptlib/compiler/scryptc/mac/scryptc ⠦ Building TS... /bin/sh: /Users/bjerkeset/code/helloworld/node_modules/scryptlib/compiler/scryptc/mac/scryptc: Bad CPU type in executable scrypt-ts ERROR - /Users/bjerkeset/code/helloworld/artifacts/helloworld.scrypt:0:0:0:0 - Internal compilation FATAL error raised for auto-generated file: /Users/bjerkeset/code/helloworld/artifacts/helloworld.scrypt , please report it as a bug to scrypt-ts Error: Command failed: "/Users/bjerkeset/code/helloworld/node_modules/scryptlib/compiler/scryptc/mac/scryptc" compile --ast -r -o "/var/folders/w/x9rksp8s6rv7hzzb6vyg2fth0000gn/T/scrypt-ts-0QIXu5/helloworld.scrypt-3c1cdf79a0" --std /bin/sh: /Users/bjerkeset/code/helloworld/node_modules/scryptlib/compiler/scryptc/mac/scryptc: Bad CPU type in executable

✔ Building TS

Translation failed! See errors in: /Users/bjerkeset/code/helloworld/artifacts/helloworld.transformer.json

Project compilation completed!