當使用npm安裝的時候提示報錯:Can’t find Python executable “python”, you can set the PYTHON env variable.提示缺少python環境。
可嘗試以下方法修復:
- 安裝windows-build-tools:
npm install --global --production windows-build-tools
- 安裝node-gyp
npm install --global node-gyp
*方法來源:網絡搜索