在Windows上安装BuckleScript时出现问题

时间:2019-06-14 14:26:37

标签: npm installation bucklescript

我正在尝试在Windows上安装BuckleScript。我使用以下命令:

npm install -g bs-platform

我得到这个错误:

[31mninja: fatal: [0mCreateProcess: Wersja %1 nie jest zgodna z wersją uruchomionego systemu Windows. Sprawdź informacje dotyczące systemu operacyjnego na tym komputerze, a następnie skontaktuj się z wydawcą oprogramowania.


child_process.js:650
    throw err;
    ^

Error: Command failed: C:\Users\Filip\AppData\Roaming\npm\node_modules\bs-platform\lib\ninja.exe -f release.ninja
    at checkExecSyncError (child_process.js:629:11)
    at Object.execFileSync (child_process.js:647:13)
    at buildLibs (C:\Users\Filip\AppData\Roaming\npm\node_modules\bs-platform\scripts\install.js:290:8)
    at Object.<anonymous> (C:\Users\Filip\AppData\Roaming\npm\node_modules\bs-platform\scripts\install.js:331:1)
    at Module._compile (internal/modules/cjs/loader.js:776:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:829:12)
[37;40mnpm[0m [0m[31;40mERR![0m [0m[35mcode[0m ELIFECYCLE
[0m[37;40mnpm[0m [0m[31;40mERR![0m [0m[35merrno[0m 1
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m bs-platform@5.0.4 postinstall: `node scripts/install.js`
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Exit status 1
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m 
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m Failed at the bs-platform@5.0.4 postinstall script.
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m This is probably not a problem with npm. There is likely additional logging output above.
[0m
[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m A complete log of this run can be found in:
[0m[37;40mnpm[0m [0m[31;40mERR![0m[35m[0m     C:\Users\Filip\AppData\Roaming\npm-cache\_logs\2019-06-14T14_21_01_235Z-debug.log
[0m

波兰语消息表示“版本%1与运行的Windows版本不兼容”。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

Answered by the maintainer on Github

  

实际上,当前我们仅支持Windows 64位,编译器是在64位计算机上预构建的。