Coder Social home page Coder Social logo

Error on npm run build about wprig HOT 6 CLOSED

wprig avatar wprig commented on May 5, 2024
Error on npm run build

from wprig.

Comments (6)

ygagnon avatar ygagnon commented on May 5, 2024

I'm having the exact same issue. Have you had any success in resolving this yet? If so, how?

from wprig.

ygagnon avatar ygagnon commented on May 5, 2024

I succeeded at getting it to build without errors. In order to do so, I had to do a few things:

  1. I updated NPM to the latest version
  2. I double checked my VS Code settings and fixed one of the lines pertaining to "composerJsonPath" (I'd forgotten to include the "composer.json" filename).
  3. I re-ran "npm install"
  4. I re-ran "npm run build"

{
"phpcs.enable": true,
"phpcs.composerJsonPath": "wp-content/themes/[yourThemeFolder]/composer.json",
"phpcs.standard": "WordPress",
"editor.renderWhitespace": "all"
}

  • Yvan

from wprig.

mor10 avatar mor10 commented on May 5, 2024

This looks to be an issue with Node/NPM versions. try updating Node and NPM and see if that helps. The composer.json part @ygagnon is referring to would not impact the build process, only whether or not PHPCS is active in the editor itself.

from wprig.

gnujach avatar gnujach commented on May 5, 2024

Thank, update version of node and npm work for me!!

from wprig.

tiborp avatar tiborp commented on May 5, 2024

I also manged to fix it by updating node & npm. Somehow in my package.json, gulp 3.9 was added as a dev dependency, so I had to change that to 4.0 before the run build command could be executed, but changing that to 4.0 and re-run npm install did the trick.

Thanks for your help!

from wprig.

bamadesigner avatar bamadesigner commented on May 5, 2024

I'm going to close this issue as it seems to be resolved. Thanks!

from wprig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.