node-gyp Error: Cannot find module
I have sorted more ways than i could do, e.g. uninstall everything and reinstalling it. but none works. Could someone please assist me on this one?
C:\Windows\system32>node-gyp rebuild
C:\Windows\system32>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild ) internal/modules/cjs/loader.js:584 throw err; ^
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\node_modules\node_modules\node-gyp\bin\node-gyp.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15) at Function.Module._load (internal/modules/cjs/loader.js:508:25) at Function.Module.runMain (internal/modules/cjs/loader.js:754:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
Hi, could you provide node and npm versions?
Hi, could you provide node and npm versions?

C:\Windows\System32>node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder.
Make sure you have python 2 installed and that it's on your %PATH% somewhere. You can also pass --python <path>\python.exe to npm / node-gyp or set that in your .npmrc.
see https://github.com/nodejs/node-gyp#on-windows if you need more info on dependencies and how to get them conveniently