简体   繁体   English

电子锻造:缺少一些依赖项

[英]electron-forge: missing some dependencies

Using: Windows 10, NMP 6.4.1, Node v10.13.0, GIT 2.8.4使用:Windows 10、NMP 6.4.1、Node v10.13.0、GIT 2.8.4

A simple app to show IMDB records: https://ide.c9.io/learnwithcolt/webdevbootcamp folder APIS / movie_search_app一个显示 IMDB 记录的简单应用: https ://ide.c9.io/learnwithcolt/webdevbootcamp 文件夹 APIS / movie_search_app

Dowloaded to run locally on Windows.下载以在 Windows 上本地运行。 It runs ok.它运行正常。

When I run:当我运行时:

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:包.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"
  }
}

The same happens with other proyects.其他项目也是如此。 CMD is running as Administrator. CMD 以管理员身份运行。

The same happens with other proyects其他项目也一样

Just with electron-forge or other CLI tools too?也只是使用electron-forge或其他 CLI 工具? My guess is this is a path issue- electron forge can't find your Node/Git installations.我的猜测是这是一个path问题-electron forge 找不到您的 Node/Git 安装。

You can try npx electron-forge init my-new-app but that's a long shot.您可以尝试npx electron-forge init my-new-app但这是一个远景。

Also, make sure you're using the correct version of Electron forge.另外,请确保您使用的是正确版本的 Electron forge。 There's a new one that's kinda broken right now.有一个新的,现在有点坏了。

The master branch is a rewrite of Electron Forge that will eventually be the 6.x series. master 分支是对 Electron Forge 的重写,最终将成为 6.x 系列。 If you are looking for the 5.x series (the version currently published to NPM), please view the 5.x branch.如果您正在寻找 5.x 系列(当前发布到 NPM 的版本),请查看 5.x 分支。

https://github.com/electron-userland/electron-forge https://github.com/electron-userland/electron-forge

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM