Failed to install PouchDB in Ionic2, help me please


I tried to install PouchDB in Ionic2, using command:
npm install pouchdb

But I got warning and error message as below:
npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie
npm WARN prefer global node-ninja@1.0.2 should be installed with -g

leveldown@1.4.6 install C:\Users\GrabTasker\WebstormProjects\grabtasker.appuser\node_modules\leveldown
prebuild --install

prebuild WARN install No prebuilt binaries found (target=v4.4.7 arch=x64 platform=win32)
prebuild ERR! configure error
prebuild ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
prebuild ERR! stack at failNoPython (C:\Users\GrabTasker\WebstormProjects\grabtasker.appuser\node_modules\node-gyp\lib\configure.js:449:14)
prebuild ERR! stack at C:\Users\GrabTasker\WebstormProjects\grabtasker.appuser\node_modules\node-gyp\lib\configure.js:404:11
prebuild ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
prebuild ERR! not ok
prebuild ERR! build Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
prebuild ERR! build at failNoPython (C:\Users\GrabTasker\WebstormProjects\grabtasker.appuser\node_modules\node-gyp\lib\configure.js:449:14)
prebuild ERR! build at C:\Users\GrabTasker\WebstormProjects\grabtasker.appuser\node_modules\node-gyp\lib\configure.js:404:11
prebuild ERR! build at FSReqWrap.oncomplete (fs.js:82:15)
npm WARN install:leveldown@1.4.6 leveldown@1.4.6 install: prebuild --install
npm WARN install:leveldown@1.4.6 Exit status 2
grabtaskerapp@ C:\Users\GrabTasker\WebstormProjects\grabtasker.appuser
±- UNMET PEER DEPENDENCY @angular/core@2.0.0-rc.4
`-- pouchdb@5.4.5

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14
npm WARN @ionic/cloud-angular@0.0.16 requires a peer of @angular/core@2.0.0-rc.3 but none was installed.

May experts here explain me what cause this error, as I can’t use PouchDB for my local storage. Thanks so much!

You need read this, it works for me:

posible solution

1 Like