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

ExecJS can't find JavaScriptCore in macOS 10.15 (Catalina) #88

Closed
paulmakepeace opened this issue Apr 8, 2020 · 6 comments
Closed

ExecJS can't find JavaScriptCore in macOS 10.15 (Catalina) #88

paulmakepeace opened this issue Apr 8, 2020 · 6 comments

Comments

@paulmakepeace
Copy link

paulmakepeace commented Apr 8, 2020

[execjs-catalina]$ gem install execjs
Successfully installed execjs-2.7.0
1 gem installed
[execjs-catalina]$ irb -rexecjs
Traceback (most recent call last):
...
/Users/makepeace/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
[execjs-catalina]$ sw_vers -productVersion
10.15.4

runtimes.rb:30 is looking in

/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc

...but it's now in,

/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Helpers/jsc

Bonus: use Current instead of A:

$ ls -l /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current
lrwxr-xr-x  [...] /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current -> A
paulmakepeace pushed a commit to paulmakepeace/execjs that referenced this issue Apr 9, 2020
('Current' symlinks to 'A')

`PASSED:  test:javascriptcore`

Addresses rails#88
@stonefield
Copy link

+1

1 similar comment
@tedgarb
Copy link

tedgarb commented May 24, 2020

+1

@shantamg
Copy link

+1
After updating, my local server won't start. Rather than try to symlink jsc I have decided to install node.js and that's fine with me, but this certainly should be fixed.

@jungbunzlav
Copy link

+1

@zz5678
Copy link

zz5678 commented Jul 4, 2020

macOS 10.15, same error from python module PyExecJS:

raise ValueError('Can not find the given interpreter: %r' % interpreter)
ValueError: Can not find the given interpreter: 
'/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc'

@byroot
Copy link
Member

byroot commented May 7, 2021

Fixed in #98

@byroot byroot closed this as completed May 7, 2021
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

7 participants