lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2.05k stars 45 forks source link

Bug: Installing `sweph` package from REPL does not run builld properly #600

Closed iki closed 10 months ago

iki commented 10 months ago

Steps to reproduce:

  1. Put the following into a new tab:

    import sweph from 'sweph'
    
    sweph.version()
  2. Install sweph from evaluation window prompt

Expected result:: '2.10.03' Actual result: Error stating build/Release/sweph.node is missing

Actually the build is missing completely. Probably, the install script was not executed properly and/or package installation error is not reported by the app.

Workaround:

Platform: Win 11 x64 latest

lukehaas commented 10 months ago

Thanks @iki. RunJS, unfortunately, can't build native dependencies. The workaround that you've found is the recommended solution. Alternatively, there are often JS alternatives to a lot of native packages, but that might not be the case for this one.