報錯場景:
npm安裝依賴過程中,開始都很正常,最后報這個錯:
Error: Can't find Python executable "python", you can set the PYTHON env variable
解決:
1、安裝windows-build-tools
npm install --global --production windows-build-tools
2、安裝node-gyp
npm install --global node-gyp