我刚刚按照主页说明安装了电子伪造,但是当我尝试从angular2模板创建一个新项目时,它会创建默认的Vanilla模板。 我使用的这些命令:
npm install -g electron-forge
electron-forge init my-new-project --template=angular2
我重新安装了两次,仍然是同样的问题。
更新
的输出
DEBUG = electron-forge * electron-forge init my-new-project --template = angular2
WARNING: DEBUG environment variable detected. Progress indicators will be sent over electron-forge:lifecycle
electron-forge:lifecycle Process Started: Checking your system +0ms
electron-forge:lifecycle Process Succeeded: Checking your system +14ms
electron-forge:runtime-config setting key: verbose to value: false +6ms
WARNING: DEBUG environment variable detected. Progress indicators will be sent over electron-forge:lifecycle
electron-forge:init Initializing in: /home/jotaeler/projects/my-new-project +0ms
electron-forge:lifecycle Process Started: Initializing Project Directory +2ms
electron-forge:init:directory creating directory: /home/jotaeler/projects/my-new-project +1ms
electron-forge:lifecycle Process Succeeded: Initializing Project Directory +3ms
electron-forge:lifecycle Process Started: Initializing Git Repository +1ms
electron-forge:init:git executing "git init" in directory: /home/jotaeler/projects/my-new-project +1ms
electron-forge:lifecycle Process Succeeded: Initializing Git Repository +8ms
electron-forge:lifecycle Process Started: Copying Starter Files +0ms
electron-forge:init:starter-files creating directory: /home/jotaeler/projects/my-new-project/src +1ms
electron-forge:init:starter-files copying "/usr/local/lib/node_modules/electron-forge/tmpl/_gitignore" --> "/home/jotaeler/projects/my-new-project/.gitignore" +1ms
electron-forge:init:starter-files copying "/usr/local/lib/node_modules/electron-forge/tmpl/_compilerc" --> "/home/jotaeler/projects/my-new-project/.compilerc" +1ms
electron-forge:init:starter-files copying "/usr/local/lib/node_modules/electron-forge/tmpl/_eslintrc" --> "/home/jotaeler/projects/my-new-project/.eslintrc" +0ms
electron-forge:init:starter-files copying "/usr/local/lib/node_modules/electron-forge/tmpl/index.js" --> "/home/jotaeler/projects/my-new-project/src/index.js" +1ms
electron-forge:init:starter-files copying "/usr/local/lib/node_modules/electron-forge/tmpl/index.html" --> "/home/jotaeler/projects/my-new-project/src/index.html" +0ms
electron-forge:lifecycle Process Succeeded: Copying Starter Files +0ms
electron-forge:lifecycle Process Started: Initializing NPM Module +1ms
electron-forge:init:npm writing package.json to: /home/jotaeler/projects/my-new-project +4ms
electron-forge:lifecycle Process Succeeded: Initializing NPM Module +1ms
electron-forge:lifecycle Process Started: Installing NPM Dependencies +0ms
electron-forge:init:npm installing dependencies +1ms
electron-forge:dependency-installer installing ["electron-compile"] in: /home/jotaeler/projects/my-new-project dev=false,exact=false,withYarn=false +3ms
electron-forge:dependency-installer executing ["install","electron-compile","--save"] in: /home/jotaeler/projects/my-new-project +0ms
electron-forge:runtime-config fetching key verbose +1ms
electron-forge:runtime-config fetching key verbose +3ms
electron-forge:init:npm installing devDependencies +11s
electron-forge:dependency-installer installing ["babel-preset-env","babel-preset-react","babel-plugin-transform-async-to-generator"] in: /home/jotaeler/projects/my-new-project dev=true,exact=false,withYarn=false +0ms
electron-forge:dependency-installer executing ["install","babel-preset-env","babel-preset-react","babel-plugin-transform-async-to-generator","--save-dev"] in: /home/jotaeler/projects/my-new-project +0ms
electron-forge:runtime-config fetching key verbose +0ms
electron-forge:runtime-config fetching key verbose +3ms
electron-forge:init:npm installing exact dependencies +11s
electron-forge:dependency-installer installing ["electron-prebuilt-compile"] in: /home/jotaeler/projects/my-new-project dev=true,exact=true,withYarn=false +1ms
electron-forge:dependency-installer executing ["install","electron-prebuilt-compile","--save-exact","--save-dev"] in: /home/jotaeler/projects/my-new-project +0ms
electron-forge:runtime-config fetching key verbose +0ms
electron-forge:runtime-config fetching key verbose +2ms
electron-forge:init:npm installing airbnb linting dependencies +44s
electron-forge:dependency-installer installing ["eslint","eslint-config-airbnb","eslint-plugin-import","eslint-plugin-jsx-a11y","eslint-plugin-react"] in: /home/jotaeler/projects/my-new-project dev=true,exact=false,withYarn=false +0ms
electron-forge:dependency-installer executing ["install","eslint","eslint-config-airbnb","eslint-plugin-import","eslint-plugin-jsx-a11y","eslint-plugin-react","--save-dev"] in: /home/jotaeler/projects/my-new-project +0ms
electron-forge:runtime-config fetching key verbose +0ms
electron-forge:runtime-config fetching key verbose +2ms
electron-forge:lifecycle Process Succeeded: Installing NPM Dependencies +19s
答案 0 :(得分:0)
@MarshallOfSound一发布新版本就可以正常使用