cross-env not found


Whilst trying to run npm run dev for a Laravel project, you get this:

user@hostname ~/Code/project $ npm run dev

> @ dev /home/user/Code/nova
> npm run development

> @ development /home/user/Code/nova

> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

sh: 1: cross-env: not found

Check This First

Did you do npm install  ? 😉

Then Try This

Try this:

sudo npm install --global cross-env



Share this article

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top