You need to make cross-env working globally instead of having it in the project.
1) remove node_modules
folder
2) run
npm install --global cross-env
3) remove "cross-env": "^5.0.1",
from package.json
file devDependencies
section. Actually, you can skip this step and keep package.json intact. If you prefer.
4) run
npm install --no-bin-links
5) run
npm run dev
and see it working
P.S Tested on Windows 10 with Laravel-5.4
P.P.S Windows 10 with Laravel-5.6 does not have this problem, thus updating is an alternative solution.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…