【发布时间】:2019-04-14 00:52:32
【问题描述】:
使用: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+
package.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 正在以管理员身份运行。
【问题讨论】:
-
你想在 C9 上开发 Electron 吗?因为那行不通,或者你至少不能在 C9 上运行 Electron。
-
不,抱歉,是我下载的本地版本。帖子已编辑。