Open Schmavery opened 4 years ago
Not exactly sure what's happening, I guess node doesn't let you have a node package globally installed that conflicts with a local package's version?
I'm having the same problem. @Schmavery any suggestions?
Hey, I'm running into the same problem. Any news?
The long-term answer is that we've been working to try and get the changes in bsb-native upstreamed into bucklescript here: https://github.com/BuckleScript/bucklescript/pull/3762
I'm not sure what the specific bug is in this case, unfortunately the only workaround I'm aware of currently is not globally installing bs-platform.
Hey all! Sorry about this, I'm guessing you're all on linux? We're working on figuring out what's going on to see if we can fix it soon
Any progress here? I'd love instructions for the "not globally installing" solution if that is something that would get me to a working state...
Hey @spike7638 sorry for the long-ass wait. So I’d recommend nuking your global install of bs-platform by doing npm global remove bs-platform
and then install bsb-native locally: npm install bsb-native@4.0.7000
That version should work better than the latest.
Thanks...I'll give that a try. And thanks for the details -- I'm still learning the arguments/options to both npm and bsb. :(
Sorry for the delayed answer. Thanks for the workaround. And yes, I'm on Linux. Cheers
OK. I'm trying once again Just for the record, I'm on a Mac, v 12.0.1. Using your advice from April 3, combined with what worked for me a while ago (see Dec '19 discussion in https://reasonml.chat/t/is-reprocessing-alive/2045/4), I tried this:
% npm uninstall -g bsb
% mkdir foo
% cd foo
% git clone https://github.com/bsansouci/reprocessing-example.git
% cd reprocessing-example
% npm install bsb-native@4.0.7000
> bsb-native@4.0.7000 postinstall /Users/jfh/Desktop/foo/reprocessing-example/node_modules/bsb-native
> node postinstall.js
/Users/jfh/Desktop/foo/reprocessing-example/node_modules/bsb-native/postinstall.js:22
let version = JSON.parse(fs.readFileSync("package.json")).version;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
at node.js:405:3
npm WARN reprocessing-example@ No repository field.
npm WARN reprocessing-example@ No license field.
npm ERR! Darwin 21.1.0
npm ERR! argv "/Users/jfh/.nvm/versions/node/v5.12.0/bin/node" "/Users/jfh/.nvm/versions/node/v5.12.0/bin/npm" "install" "bsb-native@4.0.7000"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! bsb-native@4.0.7000 postinstall: `node postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bsb-native@4.0.7000 postinstall script 'node postinstall.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bsb-native package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bsb-native
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bsb-native
npm ERR! There is likely additional logging output above.
and got the results you see. Sadly, everything related to Javascript is a mystery to me, so I have no idea what's going on here. But I also tried following the instructions in the README (https://github.com/bsansouci/reprocessing-example/blob/master/README.md) and failed in essentially the same way. It might improve the Readme slightly if, after the git clone, you had us change directory (cd reprocessing-example/
) before running npm install
. But that's clearly not the main problem here.
From https://reasonml.chat/t/is-reprocessing-alive/2045/10 cc @jdeisenberg