nearley
nearley copied to clipboard
`babel-cli` and `coffee-script` must be installed globally in order for tests to pass
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.
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.
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
.
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.)