Background
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