-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'node_modules' is not recognized on Windows #2
Comments
It looks like this is fairly common when using Laravel Mix on Windows. There's an issue about it here with a couple of solutions for amending paths inside package.json, I would give these methods a try first. If not you could also run npm update to get the latest dependancies. |
I've tried the following but get the following: It hangs past that. shrug |
I've had this before myself, but I can't remember how I fixed it. From memory I had to remove the node_modules folder and completely restart my machine to get the command prompt to behave again. That could just be coincidence though. There are a couple solutions posted here, let me know if any of them work for you. |
Here's what I did to make work for any other Windows user: Add cross-env (don't forget to install it info) to the beginning of the dev, watch, hot, and production scripts. Example "dev" script with changes: I then had to modify the webpack.mix.js file by adding |
Good work, thanks for debugging. I'll have to test this further on Mac, as it looks like something that could be rolled in for a future release. |
Great framework, however I cannot get any of the following commands to run on Windows:
npm run dev
npm run watch
npm run hot
npm run production
Using NPM or Yarn creates the following error:
The text was updated successfully, but these errors were encountered: