Behebung von npm/node-gyp Error: not found: make auf Ubuntu
English
Deutsch
Wenn du npm install ausführst und es versucht, ein natives Paket wie bcrypt zu installieren, und du eine Fehlermeldung wie diese siehst:
error_trace.txt
gyp ERR! build error
gyp ERR! stack Error: not found: make
gyp ERR! stack at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:13:12)
gyp ERR! stack at F (/usr/lib/node_modules/npm/node_modules/which/which.js:68:19)
gyp ERR! stack at E (/usr/lib/node_modules/npm/node_modules/which/which.js:80:29)
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:89:16
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/index.js:42:5
gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:182:21)musst du einfach GNU Make installieren. Auf Ubuntu ist der einfachste Weg dies zu tun, die Ausführung von
install_build_essential.sh
sudo apt install build-essentialDies installiert nicht nur make, sondern auch verwandte Werkzeuge wie gcc und einige Standard-Header-Dateien und Werkzeuge.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow