Error while installing pouchdb via npm in ionic app v4.6


gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable “python2.7”, you can set the
PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_mo
gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_mod
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\grac
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:154:21)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodej
s\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\Server\Desktop\IHD\IHDReloaded\node_modules\leveldown
gyp ERR! node -v v10.14.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fse
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”}

npm ERR! errno 1
npm ERR! leveldown@3.0.0 install: prebuild-install || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the leveldown@3.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Server\AppData\Roaming\npm-cache_logs\2019-01-02T10_32_01