After upgrade to 5.4.6, fresh install project in windows 10 and with node 7.4 works fine. But npm in windows 10 subsystem bash fail with "95% emitting ERROR Failed to compile with 3 errors"
npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "production"
npm ERR! node v7.4.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! @ production: `node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ production script 'node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/cross-env/bin/cross-env.js NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /mnt/c/Users/alexe/PhpstormProjects/fabtek/npm-debug.log
Also upload the log in detail.
npm-debug.txt
There was a same issue opened in https://github.com/laravel/framework/issues/17620
I don't use Bash on Windows, but npm run dev probably won't work anyways even if you get other issues under control as WSL doesn't have inotify support on a publicly released builds. Unless laravel-mix is a sole perpetrator and you don't get the same kind of issues with other webpack boilerplates it may be more productive to just wait until Windows 10 Creators Update. They seem to have fixed ton of issues on a newer builds.
I've seen this error before. Pretty sure this will fix it:
sudo ln -s /usr/bin/nodejs /usr/bin/node
This is because npm is trying to run node, which is not a command in Ubuntu (Windows Bash) until you make it.
@JVMartin, I installed Node.js via package manager.
curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs
So, node could be called without make soft link.
I think it is not the case of node command name here.
+1 happen to me on windows 10 system (non laravel project)
Same here, happens only when referring to files from node_modules:
node node_modules/cross-env/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
ERROR Failed to compile with 3 errors
error in ./resources/assets/backend/less/app.less
Module build failed: Can't resolve './node_modules/font-awesome/less/font-awesome.less'
If you get an error message when you run the command : npm install or npm run dev on laravel v5.4.* project. *, please follow the steps below :
make sure your nodejs version v6. * and npm v4. *
1 command: $ npm rebuild
2 commands: $ npm install {not excluding --no-bin-link}
3 command: $ npm run dev
everything will go well and I have tried on laravel v.5.4 project. I hope, this solution can help you and others.

How can solve this mix
@mostafa6765: I had the same problems on Windows 10 with Laragon.
The path in your packages.json is wrong for cross-env.js. The paths for the npm commands are like this:
dev": "node node_modules/cross-env/bin/cross-env.js...
BUT cross-env is actually in node_modules/cross-env/dist/bin/
Edit your packages.json so it looks like the screenshot I've include and try again. It works fine after you have fixed your paths.

Thanks @Yuant-tobing your solution works for me.
how can solve this??
@poorya6868 See below. You do not have the dev scripts in package.json
"scripts": {
"dev": "xxx"
}
Most helpful comment
If you get an error message when you run the command :
npm installornpm run devon laravel v5.4.* project. *, please follow the steps below :make sure your nodejs version v6. * and npm v4. *
1 command: $
npm rebuild2 commands: $
npm install{not excluding --no-bin-link}3 command: $
npm run deveverything will go well and I have tried on laravel v.5.4 project. I hope, this solution can help you and others.