Gulp watch problem in Windows

Hi, last time i posted the same problem for MAC and it started working when i got answer on the topic.

as NVM is not available for windows so i installed the node.js with .exe file from the node js website.

i have all the requirements installed on my PC.

i am getting following errors.

C:\xampp\htdocs\sage\wp-content\themes\sage>gulp watch
module.js:339
    throw err;
    ^

Error: Cannot find module 'socket.io-parser'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (C:\xampp\htdocs\sage\wp-content\themes\sage\node_modu
les\browser-sync\node_modules\socket.io\node_modules\socket.io-client\lib\index.
js:7:14)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)

C:\xampp\htdocs\sage\wp-content\themes\sage>

I had a similar problem, I downloaded and installed the latest version of node as you did, updated npm using this guide, bower, and gulp, then ran bower install and gulp in the sage directory, which ultimately resulted in the ability to successfully execute gulp watch.

Hope that helps

1 Like