Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install with pnpm #3325

Closed
cortopy opened this issue Jan 27, 2019 · 8 comments
Closed

Can't install with pnpm #3325

cortopy opened this issue Jan 27, 2019 · 8 comments
Labels

Comments

@cortopy
Copy link

cortopy commented Jan 27, 2019

I was trying to install bs-platform using pnpm

pnpm i -g bs-platform

but postinstall script fails:

.../4.0.18/node_modules/bs-platform postinstall$ node scripts/install.js
│ ninja binary is copied from pre-distribution
│ No working prebuilt buckleScript compiler
│ The OCaml compiler, version 4.02.3+BS
│ Standard library directory: /home/user/.opam/4.02.3+buckle-master/lib/ocaml
│ Use the compiler above
│ [1/6] Making reactjs_jsx_ppx_2.exe
│ [2/6] Making bsb_helper.exe
│ [3/6] Making bsb.exe
│ [4/6] Making bsppx.exe
│ [5/6] Making refmt.exe
│ [6/6] Making bsc.exe
│ Cleaning... 0 files.
│ [1/296] runtime/bs_stdlib_mini.mli -> runtime/bs_stdlib_mini.cmi
│ [2/296] runtime/js.ml -> runtime/js.cmj runtime/js.cmi
│ Building runtime/js.ml
│ File "js_implementation.ml", line 138, characters 33-40 Compilation fatal error, stacktrace saved into bsc.dump when compiling runtime/js.ml
│ File "/home/user/.opt/n/pnpm-global/1/node_modules/.registry.npmjs.org/bs-platform/4.0.18/node_modules/bs-platform/jscomp/runtime/js.ml", line 1:
│ Error: I/O error: /home/user/.opt/n/pnpm-global/1/node_modules/.registry.npmjs.org/bs-platform/4.0.18/node_modules/bs-platform/lib/amdjs/js.js: No such file or directory
│ child_process.js:624
│     throw err;
│     ^
│ Error: Command failed: /home/user/.opt/n/pnpm-global/1/node_modules/.registry.npmjs.org/bs-platform/4.0.18/node_modules/bs-platform/lib/ninja.exe -f release.ninja
│     at checkExecSyncError (child_process.js:601:13)
│     at Object.execFileSync (child_process.js:621:13)
│     at buildLibs (/home/user/.opt/n/pnpm-global/1/node_modules/.registry.npmjs.org/bs-platform/4.0.18/node_modules/bs-platform/scripts/install.js:240:8)
│     at Object.<anonymous> (/home/user/.opt/n/pnpm-global/1/node_modules/.registry.npmjs.org/bs-platform/4.0.18/node_modules/bs-platform/scripts/install.js:271:1)
│     at Module._compile (module.js:652:30)
│     at Object.Module._extensions..js (module.js:663:10)
│     at Module.load (module.js:565:32)
│     at tryModuleLoad (module.js:505:12)
│     at Function.Module._load (module.js:497:3)
│     at Function.Module.runMain (module.js:693:10)
└─ Failed in 19s
 ERROR  bs-platform@4.0.18 postinstall: `node scripts/install.js`
Exit status 1

@bobzhang bobzhang added the build label Jan 28, 2019
@bobzhang
Copy link
Member

It seems that pnpm will not create empty directories, will be fix in next release (amdjs module gonna be removed)

@bobzhang
Copy link
Member

confirm this is fixed in bs-platform@next

@cortopy
Copy link
Author

cortopy commented Jan 28, 2019

@bobzhang thank you so much for such a speedy fix!!! all working great

@ghost
Copy link

ghost commented Jun 27, 2019

@bobzhang hi! 6.0.0-dev.1 works fine, but postinstall fails with same error (albeit folder is different: bs-platform/lib/es6/js.js) at 6.0.1 and 6.0.2

@bobzhang
Copy link
Member

bobzhang commented Jun 29, 2019

@ln-nl will make a fix and a bug fix release

@bobzhang bobzhang reopened this Jun 29, 2019
bobzhang added a commit that referenced this issue Jun 29, 2019
@bobzhang
Copy link
Member

fixed in #3641

@ghost
Copy link

ghost commented Jun 29, 2019

Thank you!

@fczuardi
Copy link

fczuardi commented Aug 6, 2019

It works for "5.1.0-dev.4" but fails for "6.0.3".

Should this be reopened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants