mac系统升级以后,npm install按照报错
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.15.1 | win32 | x64
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
执行命令
npm i -g node-gyp
把node_modules删除,重新执行npm install命令成功