laravel 7 'cross-env' is not recognized as an internal or external command, operable program or batch file. code example
Example 1: 'cross-env' is not recognized as an internal or external command, laravel
npm install -global cross-env
npm install --no-bin-links
Example 2: npm 'cross-env' is not recognized as an internal or external command
First run:
rm -rf node_modules
rm package-lock.json yarn.lock
npm cache clear --force
Then run the command:
npm install cross-env
npm install
and then you can also run:
npm run dev