且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

npm ERR!运行npm install时enoent undefined

更新时间:2021-11-07 22:18:04

此问题是由于未安装Git或终端中不可用而引起的.赠送的是您的错误日志中的这一行:

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

基本上,这意味着命令git由于找不到而无法执行.

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

在再次运行此命令之前,请确保已安装git并将其添加到您的PATH中.

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