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
'npm run dev' doesn't do anything (Windows 10) #18446
Comments
Remove the |
Hey @joshmanders, thanks for the support. After changing the script to
Adding the node_modules back still executes the command without errors, but doesn't actually build the changes in app.scss, so nothing's changed, I'm afraid. |
Why did you add |
Windows doesn't support symbolic links so I guess he really need to specify the |
I'm not entirely sure about @kentcdodds package, but it seems to be built for using cross OS' such as on Windows, so I'd expect the bin file to be useable. |
If I run npm install without the |
Anyone else can confirm the same failure on Windows10? |
I'll try on another Windows 10 machine when I get home. |
I remember facing some problems with |
I'm getting the exact same behaviour on a different Windows 10 machine with all included software a clean install. @deleugpn where you using the current latest version of laravel? Perhaps I'll try with an older version. |
I have tried both 5.4 and 5.4@dev recently and they both gives the same problem: cross-env doesn't come as default, you install it and it just works from there on. |
Well, I'm positive I have cross_env, as it's in the project's node_modules now, I still need to add Edit: FYI using Laravel 5.3.30 gulp builds the css just fine. |
Everyone - if you're getting "cross-env" not found, do |
If you do pass Possible solutions:
|
Other option is to just
Edit package.json and replace
|
the same error on ubuntu16.04 and mint18.I just copy node_modules/cross-env/dist/bin to node_modules/cross-env/bin manually,then it works. |
I installed cross-env globally and have the global bin in my Windows Path. |
Closing this issue since it's not laravel-core related, quoting Jeffrey's comment:
Please refer to Mix's repository for further details on the issue: https://github.com/JeffreyWay/laravel-mix |
I have a windows computer at the office and this finally worked for me. Hope this helps someone using Windows 10 and the newest homestead vm:
replace package.json scripts to this:
then:
Should be good to go so try:
|
@sojohnnysaid Do you use browsersync with homestead? If so, can you monitor the view and controllers files? |
firs install yarn https://yarnpkg.com/lang/en/docs/install/ |
Description:
Running on windows 10, new install of node, homestead and laravel, completely new project with 'laravel new project-name'.
Laravel's running smoothly but I can't seem to get app.scss to build by using 'npm run dev' in homestead ssh gives me the following error:
So I added node node_modules/ to the dev script in packages.json, like so:
Now the command executed without any problems, however my app.css is not updated with the changes from app.scss. Here's hoping someone knows the solution to this or what I'm doing wrong?
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: