![](/img/trans.png)
[英]electron-forge : Missing dependencies = git and node, but which git can I choose?
[英]electron-forge: missing some dependencies
使用:Windows 10、NMP 6.4.1、Node v10.13.0、GIT 2.8.4
一个显示 IMDB 记录的简单应用: https ://ide.c9.io/learnwithcolt/webdevbootcamp 文件夹 APIS / movie_search_app
下载以在 Windows 上本地运行。 它运行正常。
当我运行时:
electron-forge init my-new-app
√ Checking your system
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+
包.json:
{
"name": "imdb",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"ejs": "^2.6.1",
"express": "^4.16.4",
"request": "^2.88.0"
},
"devDependencies": {
"electron": "^3.0.8"
}
}
其他项目也是如此。 CMD 以管理员身份运行。
其他项目也一样
也只是使用electron-forge
或其他 CLI 工具? 我的猜测是这是一个path
问题-electron forge 找不到您的 Node/Git 安装。
您可以尝试npx electron-forge init my-new-app
但这是一个远景。
另外,请确保您使用的是正确版本的 Electron forge。 有一个新的,现在有点坏了。
master 分支是对 Electron Forge 的重写,最终将成为 6.x 系列。 如果您正在寻找 5.x 系列(当前发布到 NPM 的版本),请查看 5.x 分支。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.