npm報錯:Can't find Python executable "python", you can set the PYTHON env variable.

Can't find Python executable "python", you can set the PYTHON env variable當使用npm安裝的時候提示報錯:Can’t find Python executable “python”, you can set the PYTHON env variable.提示缺少python環境。
可嘗試以下方法修復:

  1. 安裝windows-build-tools:
npm install --global --production windows-build-tools
  1. 安裝node-gyp
npm install --global node-gyp

*方法來源:網絡搜索

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章