Closed
Description
When installing with npm install -g bs-platform
on WSL I get the following error:
/root/.npm-global/bin/bsb -> /root/.npm-global/lib/node_modules/bs-platform/lib/bsb
/root/.npm-global/bin/bsc -> /root/.npm-global/lib/node_modules/bs-platform/lib/bsc
/root/.npm-global/bin/bsrefmt -> /root/.npm-global/lib/node_modules/bs-platform/lib/bsrefmt
> [email protected] postinstall /root/.npm-global/lib/node_modules/bs-platform
> node scripts/install.js
module.js:538
throw err;
^
Error: Cannot find module '/root/.npm-global/lib/node_modules/bs-platform/scripts/install.js'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /root/.npm/_logs/2017-11-23T00_04_13_596Z-debug.log
Node version: 8.9.1
NPM version: 5.5.1
OCaml version: 4.02.3
Any ideas how to fix this?