angular pouchdb -ERROR 找不到Python可执行文件"python",可以设置PYTHON环境变量

angular pouchdb -ERROR Can't find Python executable "python", you can set the PYTHON env variable

我正在尝试在 Angular 应用程序中安装 PouchDB。这在过去对我有用,但现在当我尝试创建一个新项目时出现错误: " Can't find Python executable "python", you can set the PYTHON env variable "

我不确定为什么这是我遇到的错误,这与新的 Angular 有什么关系吗?或者也许是 PouchDB 6.3 版?任何帮助将不胜感激

我遇到了同样的问题,我用较低的node.js版本解决了:

$ nvm list

  * 8.3.0 (Currently using 64-bit executable)
    7.4.0
    6.10.0
    4.4.7
    4.3.0

$ nvm use 7.4.0
$ npm i --save pouchdb
...
$ nvm use 8.3.0

原因是 pouchdb 使用的 leveldown 已经预先打包了对应于您的 OS 和 node 版本的二进制文件,因为它找不到我的,它试图构建它但由于某种原因(可能 Windows 反斜杠问题)它不能。