question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error running `npx wpgulp` (Windows)

See original GitHub issue

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:

image image image

You can see various versions, of npx, node and npm below:

image

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

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

5reactions
wkjonescommented, Sep 29, 2022

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!

  1. Ran npx wpgulp - got the error message. Came to Github found this issue.
  2. Ran npm uninstall gulp-sass
  3. Ran npm install gulp-dart-sass --save-dev
  4. Updated the const in gulpfile.babel.js - from require(“gulp-sass”); to require(“gulp-dart-sass”);
  5. Had to update the outputStyle const in the wpgulp.config.js file from compact to compressed. (you may or may not have to do this step.)
  6. npm start - start building the greatest WP theme ever!

I hope this helps someone.

1reaction
jallen9674commented, Jul 22, 2022

Try using nvm, and node 14.15.3 (Or whatever the best version is there.) Works for me!

Read more comments on GitHub >

github_iconTop Results From Across the Web

gulp command not found - error after installing gulp
Running npm list gulp (or -g), I gulp@3.7.0 with the location of either my global or local gulp installation. I've tried running node...
Read more >
Quick fix for "gulp: command not found" error
Quick fix for “gulp: command not found” error · Install the gulp-cli globally · Check that you have npm installed in the /usr/local...
Read more >
gulp: command not found error [Solved] | bobbyhadz
To solve the error "gulp: command not found", install the gulp-cli package globally by running npm install -g gulp-cli and restart your terminal....
Read more >
gulp command not found - error after installing gulp #6089
Hi all. Solved this problem by installing gulp locally and globally. Locally using npm install command on git bash and globally with npm...
Read more >
Installing gulp and its dependencies - IBM
Procedure · Install node. · Open the command line interface with administrator privileges. · Run the command: npm install -g gulp@v3.9.0 . ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found