How to run JavaScript using jsc on OS X?

后端 未结 3 1481
天命终不由人
天命终不由人 2021-01-30 10:46

I got this when I was trying to find some way to run my JavaScript programs through terminal. The run and load command mentioned can execute external J

3条回答
  •  一向
    一向 (楼主)
    2021-01-30 11:45

    NOTE for MacOS Catalina (10.15.x) users

    jsc now lives on a new path:

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

    Make that adjustment to @hurrymaplelad's instructions and you'll be good to go.

提交回复
热议问题