Hi –
Am very new to OCaml/Bucklescript. Was trying to build Bucklescript from source on WIndows 10 following these instructions:
Install From Source, Through NPM/Yarn
Prerequisite: either npm or yarn, plus the standard C toolchain.
git clone https://github.com/bucklescript/bucklescript
cd bucklescript
npm install
This was after installing OCaml following instructions here:
https://fdopen.github.io/opam-repository-mingw/installation/
specifically, this (I installed the 64-bit version):
Graphical Installer
You can try the graphical installer:
32-bit (updated 21. Jan 2019)
64-bit (updated 21. Jan 2019)
The installer will first create a customized cygwin environment and then set up opam and OCaml inside this environment. The setup should be easy and fast this way. However, the installer won’t allow you to set custom options: proxy configuration, select the initial OCaml version to install, etc. (If possible, the 64-bit version of cygwin is installed. The 32-bit version is not longer recommended)
When I run npm install from the new bucklescript folder, I get the following error:
C:\Users\Michael\bucklescript>npm install
bs-platform@5.0.0-dev.2 postinstall C:\Users\Michael\bucklescript
node scripts/install.js
ninja binary is already cached and installed: C:\Users\Michael\bucklescript\lib\ninja.exe
ninja: error: ‘bsc.win32’, needed by ‘bsc.exe’, missing and no known rule to make it
child_process.js:637
throw err;
^
Error: Command failed: C:\Users\Michael\bucklescript\lib\ninja.exe -f copy.win32.ninja
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:13)
at copyPrebuiltCompilers (C:\Users\Michael\bucklescript\scripts\install.js:217:8)
at Object. (C:\Users\Michael\bucklescript\scripts\install.js:266:5)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! bs-platform@5.0.0-dev.2 postinstall: node scripts/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bs-platform@5.0.0-dev.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Michael\AppData\Roaming\npm-cache_logs\2019-02-13T04_44_18_563Z-debug.log
Does this look familiar to anyone? Any ideas for me?
Thanks,
Mike