Best way to get spidermonkey js on Ubuntu?

前端 未结 5 1110
小鲜肉
小鲜肉 2020-12-30 04:15

I need to install the Spidermonkey JS engine on my work machine. The project I\'m working on has a jslint script that requires Spidermonkey or a similar js binary. I\'ve tri

5条回答
  •  抹茶落季
    2020-12-30 04:35

    Install the package libmozjs-24-bin. It contains the Spidermonkey JavaScript shell binary /usr/bin/js24 which you can the be installed as an alternative for the command js.

    sudo apt-get install libmozjs-24-bin
    sudo update-alternatives --install /usr/bin/js js /usr/bin/js24 10
    

提交回复
热议问题