Closed Guara92 closed 2 years ago
Hi!
What happens if you run npx elm --help
or yarn elm --help
in the same directory?
elm-test just tries to execute elm
and expects it to be in $PATH
. npx
and yarn
add ./node_modules/.bin
to $PATH
, and people usually have elm
in there so that’s how it works. But in your case, it looks like something expects node_modules/elm/bin/elm
to be a Node.js script, while in reality it seems to be the Elm binary itself.
So from a quick look it doesn’t look like there’s a problem with elm-test – more of a problem of your installation of elm
itself.
Thanks for your reply, I have the exact same result simply running elm
.
I suspect more a yarn problem after your response, because if run the binary from its folder it works, i will try to open an issue on their side.
it's seems an old open issue on yarn side https://github.com/yarnpkg/berry/issues/882#issuecomment-817223739
Hi, I'm trying to migrate a project to yarn 2 (3.2.1) with PnP, but I have an issue when i try to run elm-test, everything works with yarn 1
if I try to run it with npx, npx say that needs to install the package.
Update: I tried with
nodeLinker: node-modules
and still doesn't work