nearley icon indicating copy to clipboard operation
nearley copied to clipboard

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

Open bandaloo opened this issue 4 years ago • 3 comments

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.

bandaloo avatar Nov 28 '20 00:11 bandaloo

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.

kach avatar Nov 28 '20 04:11 kach

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.

bandaloo avatar Nov 28 '20 18:11 bandaloo

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.)

kach avatar Nov 28 '20 19:11 kach