Comments (10)
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?
from reprocessing-example.
I'm having the same problem. @Schmavery any suggestions?
from reprocessing-example.
Hey, I'm running into the same problem. Any news?
from reprocessing-example.
The long-term answer is that we've been working to try and get the changes in bsb-native upstreamed into bucklescript here: rescript-lang/rescript-compiler#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.
from reprocessing-example.
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
from reprocessing-example.
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...
from reprocessing-example.
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 [email protected]
That version should work better than the latest.
from reprocessing-example.
Thanks...I'll give that a try. And thanks for the details -- I'm still learning the arguments/options to both npm and bsb. :(
from reprocessing-example.
Sorry for the delayed answer. Thanks for the workaround. And yes, I'm on Linux.
Cheers
from reprocessing-example.
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 [email protected]
> [email protected] 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" "[email protected]"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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 reprocessing-example.
Related Issues (20)
- Running `npm run build` fails on OS X HOT 6
- Is Raspberry PI Supported? HOT 4
- indexhot.byte not working in Windows 10 HOT 4
- `npm run start:native` and `npm run start` fail with "That operation is not supported" HOT 16
- js files get placed in src/, not in lib/js/src HOT 2
- Inconsistent assumptions error in merlin
- Web and native examples fail with runtime exception Not_found accessing hashtable
- Ubuntu 16.04 x86_64 failure HOT 7
- `npm run build` error on the Ubuntu 19.04 HOT 9
- Add github template functionnality to this repo HOT 2
- Fresh install issues Ubuntu 18.04 HOT 6
- Issues on Sway (Wayland) HOT 7
- Issue with setup (tgls_bindings.a not found)
- submitting fixes for 2048 and livestream-flappybird branch HOT 1
- Firefox 58.0.1 64 bit Ubuntu 16.04 64 bit HOT 18
- Example fails because of library naming issues HOT 1
- Mention that you are using python 2 in the readme HOT 1
- Does not build properly on OpenSUSE 42.2, npm version 5.6.0 HOT 3
- Unable to run `npm run build` on Ubuntu 17.10 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reprocessing-example.