gyp ERR! stack Error: Could not find any Python installation to use

mac系统升级以后,npm install按照报错

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | 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命令成功

你可能感兴趣的:(vue,npm)