Cannot find module '/PATH/node_modules/cross-env/bin/cross-env.js'

Contact us

Cannot find module '/PATH/node_modules/cross-env/bin/cross-env.js'

When running "npm run dev" in Laravel you might hit this error:

Cannot find module '/PATH/node_modules/cross-env/bin/cross-env.js'

This is because cross-env must have updated its paths, it has "cross-env/dist/bin" not "cross-env/bin/"

12 February 2018