-
Notifications
You must be signed in to change notification settings - Fork 48
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
Issues running NPM script on Windows 10 #164
Comments
Sorry you're having cross-platform headaches :( I'm not sure why you're having problems with package.json scripts (this is a supported use case)--at a glance, your package.json looks fine. On Windows, I've never tried |
Sorry for the delayed response. It will be some time before I can test this for you. Tuesday morning my wife and I went to the hospital to give birth to our new baby. Until Saturday I won’t be back home. |
Congrats! 🎉 🎈 |
For some reason I'm not seeing a comment GitHub e-mailed me where someone reported they saw issues with I'm working from home today so I sat down to look at this again (at the office I have a Mac, so I only really have issues when working from home on my Windows computer) I took a peak in Now here's the thing: I deleted My guess is that for some reason the NPM install process wasn't completing - perhaps node-sass was failing to compile or Webpack was attempting to copy a file into the |
Ah, sounds like an npm bug in this case. I'll consider this resolved unless someone can identify shx-specific problems. |
This is what resolved mine. I installed this shx package as dev dependency myself |
Hi all, I just tackled a similar issue on my environment. My case is that I am using WSL console (Ubuntu terminal) in tandem with Windows PowerShell which turns out is not best practice. If you Hope this would help someone. Cheers! |
referenced this shelljs/shx#164
Further research may be necessary to determine the exact cause of the issue. If you have trouble reproducing, I'm willing to provide any additional information to help out.
My environment:
My package.json looks like so:
They two key lines here are that
shx
is installed (and can be found in thenode_modules
directory) and theclean
script, which utilizesshx
. On my Mac this worked perfectly. On Windows I'm getting the following error:If I install
shx
globally then I can use it just fine:However attempting to use
npx
to runshx
simply yields more errors:This and many others errors has made cross-platform development a real nightmare.
The text was updated successfully, but these errors were encountered: