执行以下命令:
1 $ rm -rf node_modules
2 $ yarn config set registry http://registry.cnpmjs.org
3 $ yarn install --no-bin-links
4 接下来打开 pakage.json 修改, 去掉package.json中的四处cross-env
"scripts":{"dev":"npm run development","development":"NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js","watch":"NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js","watch-poll":"npm run watch -- --watch-poll","hot":"NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js","prod":"npm run production","production":"NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js"},
5.执行 $ npm run watch-poll 或者 npm run dev
6.大功告成,希望能帮助到一起学习的小伙伴