報錯:
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb check python checking for Python executable "python" in the PATH
解決辦法:
主要是windows平台缺少編譯環境,
1、先運行: npm install -g node-gyp
2、然后運行:運行 npm install --global --production windows-build-tools 可以自動安裝跨平台的編譯器:gym
參考: