Bs-platform on ubuntu 16


I’m trying to run a reason project in an ubuntu container. Im getting this error:

Error: Command failed: /root/reasonapollo-crud-db/node_modules/bs-platform/scripts/
    at checkExecSyncError (child_process.js:601:13)
    at Object.execFileSync (child_process.js:621:13)
    at tryToProvideOCamlCompiler (/root/reasonapollo-crud-db/node_modules/bs-platform/scripts/install.js:106:27)
    at non_windows_npm_release (/root/reasonapollo-crud-db/node_modules/bs-platform/scripts/install.js:156:9)
    at Object.<anonymous> (/root/reasonapollo-crud-db/node_modules/bs-platform/scripts/install.js:179:5)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)

Do i have to do a standard ocaml install?


Hey idkjs,

I work on Ubuntu 16.04.
Something to watch out for is you need bs-platform installed both globally on your system and in your repo, you also need reason-cli installed globally as well.

Also your global and local versions must match.

I’m usually explicit with versions, you certainly have to include it for reason-cli on linux.

npm i -g bs-platform@3.0.0
npm i -g reason-cli@3.1.0-linux