kach / nearley

📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
https://nearley.js.org
MIT License
3.57k stars 231 forks source link

`babel-cli` and `coffee-script` must be installed globally in order for tests to pass #559

Open bandaloo opened 3 years ago

bandaloo commented 3 years ago

It appears that the preprocessor tests need their respective build tools to be installed globally with the way the tests are implemented (or I'm doing something wrong). babel-cli and coffee-script are also dev dependencies, so maybe it's possible to rework this by drilling down into the ./bin of some ./node_modules directory or something? Or maybe npx could help but that's another dependency.

kach commented 3 years ago

I think you need to do npm install --dev when getting set up? I don't have coffee-script installed globally but the tests pass for me.

bandaloo commented 3 years ago

Ok, yeah. :P This fixed coffee-script but the "builds for ES6+" still fail for me, saying /bin/sh: babel-node: command not found\n.

kach commented 3 years ago

Huh, that's odd. My instinct is to ask you to clone a fresh copy of nearley in a new directory and run npm install --dev and see if that behavior persists. (I don't have babel-node installed globally either.)