Open okgolove opened 2 years ago
Hey! 👋 Can you try #!/usr/bin/env babel --no-babelrc
? Moreover, do you need Babel? macOS 12 supports modern JavaScript.
Unfortunately does not help. Yes, it works without preprocessing via babel but I'd say it's faster with preprocessing.
@okgolove Hey! I tested this out and it works for me with #!/usr/bin/env babel
, but I have the old Homebrew install location. /usr/local/bin
is automatically appended to the env, so what I think is happening here is that /opt/homebrew/bin
is not part of your PATH and Phoenix cannot find your binaries?
~ % which babel
/usr/local/bin/babel
Babel is installed
If I set shebang
#!/opt/homebrew/bin/babel
I recieveError: Preprocessing failed. (env: node: No such file or directory )
.