npm ERR! enoent undefined when running npm install

前端 未结 2 1143
死守一世寂寞
死守一世寂寞 2021-01-23 10:32

I used to run my Angular project in my windows 7 pc. I installed Windows 2016 and all neceserry tools. I need to install the necessary dependencies for my angular project to run

相关标签:
2条回答
  • 2021-01-23 11:09

    I added

    RUN apk update
    RUN apk add git 
    

    into my dockerfile and it's now working.

    0 讨论(0)
  • 2021-01-23 11:20

    This issue is caused because Git is either not installed or not available in a terminal. The give away is this line in your error log:

    npm ERR! enoent spawn git ENOENT
    

    Basically this means that the command git could not be executed because it was not found.

    Make sure git is installed and added to your PATH before running this command again.

    0 讨论(0)
提交回复
热议问题