Reputation: 1
I'm trying to make a coding challenge involving firebase and next.js. The challenge includes a pre-configured project with some dependencies, including cross-env.
I already installed all dependencies using 'yarn install' as instructed but when I try to run 'yarn dev' so it uses an specific script file, I run into the following issue:
yarn run v1.22.21
$ bash ./scripts/dev.sh
/mnt/d/codechallenge/node_modules/.bin/cross-env: 12: node: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The error that says 'node: not found' is the one that I don't understand. This is my setup and what I currently tried:
npm install --global cross-env
and sudo npm install --global cross-env
.node "$basedir/../cross-env/src/bin/cross-env.js" "$@"
Do you know what can be causing this problem?
I appreciate your help and time.
Upvotes: 0
Views: 64