-
-
Notifications
You must be signed in to change notification settings - Fork 303
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
Error running npx wpgulp
(Windows)
#207
Comments
npx wpgulp
npx wpgulp
(Windows)
I just tried uninstalling Node and reinstalling the LTS version 16.14.2, but it results in the same errors. |
I have the same errors, well... smilar, but even more. I've uninstalled all node modules, deleted all .json files and started fresh so:
Bur nothing good is happening apart of errors and lot of deprecated packages warnings, is this tool still a good way to go in 2022 for WordPress development?
|
Same issue on MacOS. |
I have both macOS and Windows and can't get it to work on either, just resorted to my own Gulp.js config for the time-being, but would've loved to switch over to WP Gulp. |
Not sure, if it is related, but nobody mentioned it. IIRC, gyp is a python script, that helps NPM on Windows to work. Have you python installed? |
|
I was able to get it to work by uninstalling gulp-sass and replacing it with gulp-dart-sass (there may be other sass modules that would work as well). (don't forget to update the require line in the gulpfile too) |
Awais's build uses Python2, so you have to configure that first. I'd prefer not to get my hands dirty with different versions of Python so I'm looking for simpler solutions. |
Try using |
Hopefully someone finds this helpful in the feature... I believe the issue is being caused by node-sass. I followed the recommendations from @WiseArts. But thought I would break it down more fully for those like me!
I hope this helps someone. |
Thank you @wkjones, glad you got it going. Hope your project goes well! 🎉 |
I got the same errors when installing, but had issues compiling after following @wkjones steps. So I went back and ran
Oddly, there are no issues going back after getting it installed in the first place. |
An other solution for the issue. Use nvm to switch between node versions. Use node 14.15.3 or similar and you will not get any errors. |
To be honest, I wish I just rolled my own. |
use node version manager (nvm) switch node version 14 it's work for me |
Hello,
I have been trying to get past the first step, but running
npx wpgulp
(on Windows) just results in a barrage of errors for me.(I am more than happy to pay for the time to provide support / or cover the cost of an hour's maintenance).
Please find the first screenshot of running the command, followed by two screenshots of errors:
You can see various versions, of npx, node and npm below:
I've also attached below the error log from
\AppData\Local\npm-cache\_logs
:2022-04-19T07_45_20_081Z-debug-0.log
I would very much appreciate some guidance.
Thanks again and kindest regards,
Elliott
The text was updated successfully, but these errors were encountered: