electron-forge:据说缺少 git 和 node 的依赖关系,但都出现在 package.json 中

electron-forge: Supposedly missing dependencies of git and node but both appear in package.json

我输入了终端:electron-forge import,我收到了这条消息:

It looks like you are missing some dependencies you need to get Electron running. Make sure you have git installed and Node.js version 6.0.0+

但这是我的 package.json:

{ "name": "memoryassitant-electron", "version": "1.0.0", "description": "software para estudiantes de asistencia en procesos de memorización de información diversa", "main": "index.js", "dependencies": { "electron-forge": "^5.2.4", "git": "^0.1.5", "node": "^14.0.0" }, "devDependencies": { "electron": "^8.2.3" }, "scripts": { "test": "test", "dev": "electron index.js", "test1": "electron frontend.html", "installer1": "electron-forge import" }, "keywords": [ "memory", "learning", "asistant" ], "author": "Guillermo Baldán", "license": "ISC" }

如您所见,我已经安装了 git (^0.1.5) 和节点 (^14.0.0)。我不明白为什么会出现此错误。

我该如何解决?

问题在本题评论中解决: