Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross-env not recognized as internal or external command error #48

Open
bratnick opened this issue Jul 9, 2020 · 1 comment
Open

cross-env not recognized as internal or external command error #48

bratnick opened this issue Jul 9, 2020 · 1 comment

Comments

@bratnick
Copy link

bratnick commented Jul 9, 2020

On running the test, npm run test-routes, I'm getting this error
Tried installing cross-env, still giving error
Help please !
issue

@adongu
Copy link

adongu commented Jul 30, 2020

I have node v14.5.0 and yarn v1.22.4.

I did yarn add cross-env and then run the test script using yarn test-routes --scripts-prepend-node-path the --scripts-prepend-node-path option is to fix the error with node library location is different for yarn vs node. I was able to get the test suites to run.

If that doesn't work, try removing node_modules and running npm intall or yarn again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants