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
    throw err;

Error: Cannot find module ''
    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
    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)


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