Sean Connor
Sean Connor

Reputation: 1

'node: not found' when using the 'cross-env' package

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:

Do you know what can be causing this problem?

I appreciate your help and time.

Upvotes: 0

Views: 64

Answers (0)

Related Questions