系統已經裝了python3,並且可以在終端訪問。
Can't find Python executable "python", you can set the PYTHON env variable
npm config set python python3
這樣就可以了。
如果沒有環境,則要安裝即可。
windows:
npm install --global --production windows-build-tools
mac:
brew install python3
查看安裝位置:
which python3