gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/opt/docapi/node_modules/which/which.js:10:17)
gyp ERR! stack at /opt/docapi/node_modules/which/which.js:57:18
gyp ERR! stack at new Promise (<anonymous>)
gyp ERR! stack at step (/opt/docapi/node_modules/which/which.js:54:21)
gyp ERR! stack at /opt/docapi/node_modules/which/which.js:71:22
gyp ERR! stack at new Promise (<anonymous>)
gyp ERR! stack at subStep (/opt/docapi/node_modules/which/which.js:69:33)
gyp ERR! stack at /opt/docapi/node_modules/which/which.js:80:22
gyp ERR! stack at /opt/docapi/node_modules/isexe/index.js:42:5
gyp ERR! stack at /opt/docapi/node_modules/isexe/mode.js:8:5
gyp ERR! System Linux 4.18.0-553.6.1.el8.x86_64
gyp ERR! command "/root/home/node-v22.5.1-linux-x64/bin/node" "/opt/docapi/node_modules/sqlite3/node_modules/.bin/node-gyp" "rebuild"
gyp ERR! cwd /opt/docapi/node_modules/sqlite3
gyp ERR! node -v v22.5.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
解决办法:
yum -y install make automake gcc gcc-c++ kernel-devel