yarn install 安裝依賴報錯如下:
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if \"python\" can be used
gyp ERR! find Python - executable path is \"C:\\Program Files\\Python37\\python.exe\"
gyp ERR! find Python - version is \"3.7.0\"
gyp ERR! find Python - version is 3.7.0 - should be >=2.6.0 <3.0.0
解決方法:
下載python2.7 安裝即可
最新解決方案:
管理員權限打開執行:npm install --global --production windows-build-tools