reasonml / reason-cli

Globally installable Reason toolchain.
MIT License
291 stars 23 forks source link

Linux reason-cli 3.0.5 fails install with JS error. #66

Open jordwalke opened 6 years ago

jordwalke commented 6 years ago

This error is experienced when installing a package that was released with esy 0.0.70.

I'm on a pretty old version of node 4.2.6 (which is the default that is installed when I install in Ubuntu with apt I think).

screen shot 2018-02-28 at 12 18 20 am

This used to work, when I would create releases with previous versions of esy (though it could have been something else that changed). I will confirm which other versions work/don't work.

jordwalke commented 6 years ago

Tried with esy 0.0.68 and saw the same issue. Going to try 0.0.66 now. Update: 0.0.66 has the same problem. I'm thinking something changed.

I even tried the latest 0.1.7 and the same problem happens. I don't know what could have changed.

jordwalke commented 6 years ago

@andreypopp This looks like fs.mkdtemp is being polyfilled incorrectly.

This console.log('mkdtemp', fs.mkdtemp) is logging undefined.