-
Notifications
You must be signed in to change notification settings - Fork 809
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
Windows Symlinks #26
Comments
Out of curiosity, is this issue resolved with Also, what version of npm are you using? I'm just wondering so I can see if I can reproduce this issue. (I'm also a Windows user, so this concerns me.) |
No, unfortunately, adding or installing cross-env through yarn or npm doesn't solve the issue. I've tried it with both. The package will show up in the node_modules folder, but there won't be a link in the node_module/.bin folder, which is why i believe it throws the error? This is with the default npm version off a fresh Homestead install ( A few other caveats I've noticed:
|
What I mean is: did you try specifying them as dependencies in your package.json file, instead of as sub-dependencies of laravel-mix. Example: yarn add laravel-mix
:: ...
dir node_modules\.bin
:: File Not Found
yarn add cross-env
:: ...
dir node_modules\.bin
:: 12/29/2016 03:09 PM 323 cross-env
:: 12/29/2016 03:09 PM 200 cross-env.cmd |
Yes, I've tried it both ways. Specifying cross-env in the package.json file didn't have any different effect. |
Hey there, Windows 10 Homestead User as well. I cannot reproduce your issue in the first place. Some hints:
Does that help? |
I just checked my Vagrantfile - pretty sure using NTFS solved my symlink problems :) |
Just wanted to report an issue that I had with this on Windows and Homestead that others might come across. It may make sense to include this somewhere in the documentation (maybe even the Homestead documentation, as well).
For windows users using Homestead, npm cannot make symlinks unless the command prompt is run with administrator privileges. Typically, to get around this, you can run
npm install --no-bin-links
to force no symlinks. That works well, for most everything. However, because the Laravel Mix npm scripts require the node_modules/.bin directory to contain the symlinks, Windows users in non-elevated sessions will see across-env: command not found
error.In Summary: if you're a windows user with homestead, you'll have make sure to run
vagrant up
andnpm install
in a command prompt with admin privileges.The text was updated successfully, but these errors were encountered: