Giter Site home page Giter Site logo

'npm run watch' not working about tailpress HOT 5 CLOSED

ameen06 avatar ameen06 commented on August 18, 2024
'npm run watch' not working

from tailpress.

Comments (5)

justingolden21 avatar justingolden21 commented on August 18, 2024 1

I solved it by killing my Local WP sever instance, deleting the theme folder from my WP site, copying the theme (without node_modules) from where I installed to the WP site, reinstalling (npm i) and opening the server back up on Local WP.

As a test: When I replaced pb-12 with pb-10 the padding changed to 10 units, even though the pb-1 utility class was not used elsewhere before, so I know it's generating the classes. Still have to refresh the page for it to appear but that's on Local WP.

from tailpress.

jeffreyvr avatar jeffreyvr commented on August 18, 2024

I'm not able to reproduce this issue. Can you provide more information, like the OS are you using and which node version?

from tailpress.

xcession avatar xcession commented on August 18, 2024

I'm sure that he is not using the unix-like operating system. (Windows?) and not using proper terminal to do that.

from tailpress.

justingolden21 avatar justingolden21 commented on August 18, 2024

I'm on Windows and get this output for npm run watch:

C:\Users\justin.golden\Local Sites\hello-world\app\public\wp-content\themes\example-theme>npm run watch

> [email protected] watch
> cross-env NODE_ENV=development concurrently "npm run watch:css-app" "npm run watch:css-editor" "npm run watch:js"

[0] Error occurred when executing command: npm run watch:css-app
[0] Error: spawn cmd.exe ENOENT
[0]     at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
[0]     at onErrorNT (node:internal/child_process:477:16)
[0]     at processTicksAndRejections (node:internal/process/task_queues:83:21)
[1] Error occurred when executing command: npm run watch:css-editor
[1] Error: spawn cmd.exe ENOENT
[1]     at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
[1]     at onErrorNT (node:internal/child_process:477:16)
[1]     at processTicksAndRejections (node:internal/process/task_queues:83:21)
[2] Error occurred when executing command: npm run watch:js
[2] Error: spawn cmd.exe ENOENT
[2]     at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
[2]     at onErrorNT (node:internal/child_process:477:16)
[2]     at processTicksAndRejections (node:internal/process/task_queues:83:21)
[2] npm run watch:js exited with code -4058
[1] npm run watch:css-editor exited with code -4058
[0] npm run watch:css-app exited with code -4058

C:\Users\justin.golden\Local Sites\hello-world\app\public\wp-content\themes\example-theme>

from tailpress.

jeffreyvr avatar jeffreyvr commented on August 18, 2024

Closing this for now.

from tailpress.

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.