I am facing a strange issue since past 2 days,
I am able to run npm install command successfully any gup command on my project directory gives this error
internal/modules/cjs/loader.js:582
throw err;
^
Error: Cannot find module 'C:\Program Files\nodejs'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18)
at module.exports (G:\Work\spfx\sp-dev-fx-webparts-masteradadf\samples\react-rss-reader\node_modules\@microsoft\gulp-core-build-sass\node_modules\node-sass\lib\binding.js:19:10)
at Object.<anonymous> (G:\Work\spfx\sp-dev-fx-webparts-masteradadf\samples\react-rss-reader\node_modules\@microsoft\gulp-core-build-sass\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
I have already tried installing / uninstalling nodejs, gulp, npm almost 20 times each.
But still did not manage to resolve this error.
any help?
thanks for your help!
Actually nothing was wrong with GULP, it ran when , I ran the below command
node rebuild node-sass