npm install returns syscall spawn git error
Make sure you have the GIT installed on your device and accessible globally. Try to type git --version
in the CMD. If it returned that the command is not recognized and GIT already installed, then you need to add it to the PATH environment variable and make sure to try the command using a new CMD session
Alpine does not include git
. Either switch to a non-alpine version (e.g. node:16
instead of node:16-alpine
or install git in another way (more info here).