Ubuntu服务器npm安装依赖包抱错解决办法

106 阅读1分钟

抱错信息如下:

npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@8.4.1
npm ERR! gyp info using node@14.21.2 | linux | x64
npm ERR! gyp info find Python using Python version 3.8.10 found at "/usr/bin/python3"

解决办法

sudo apt-get install python3 g++ make python3-pip