Git Product home page Git Product logo

Comments (10)

Schmavery avatar Schmavery commented on July 25, 2024

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.

tracymedcalf avatar tracymedcalf commented on July 25, 2024

I'm having the same problem. @Schmavery any suggestions?

from reprocessing-example.

Ctrlmonster avatar Ctrlmonster commented on July 25, 2024

Hey, I'm running into the same problem. Any news?

from reprocessing-example.

Schmavery avatar Schmavery commented on July 25, 2024

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.

bsansouci avatar bsansouci commented on July 25, 2024

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.

spike7638 avatar spike7638 commented on July 25, 2024

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.

bsansouci avatar bsansouci commented on July 25, 2024

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.

spike7638 avatar spike7638 commented on July 25, 2024

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.

Ctrlmonster avatar Ctrlmonster commented on July 25, 2024

Sorry for the delayed answer. Thanks for the workaround. And yes, I'm on Linux.
Cheers

from reprocessing-example.

spike7638 avatar spike7638 commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.