electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.49k stars 519 forks source link

[5.x] cannot build from template #641

Closed hjlgood closed 5 years ago

hjlgood commented 5 years ago

Hello,

I would like to initialize electron-forge with react template, but the following error occurs. I use Windows10 with electron-forge V5 Thank you for your help in advance.

npm install -g electron-forge-template-react

$ electron-forge init my-new-project --template=react √ Checking your system √ Initializing Project Directory √ Initializing Git Repository √ Copying Starter Files √ Initializing NPM Module √ Installing NPM Dependencies √ Locating custom template: "react" √ Installing Template Dependencies × Copying Template Files

An unhandled error has occurred inside Forge: EISDIR: illegal operation on a directory, readlink 'zzzzz\my-new-project.compilerc' Error: EISDIR: illegal operation on a directory, readlink 'zzzzmy-new-project.compilerc'

malept commented 5 years ago

It would be helpful if you posted the Node backtrace that should accompany this error.

hjlgood commented 5 years ago

Thanks for the reply, but the above output is everything i get from terminal. How can I find Node backtrace?

malept commented 5 years ago

Run:


SET DEBUG=electron-forge:*
electron-forge --verbose init my-new-project --template=react
hjlgood commented 5 years ago

I'm not sure if this would be helpful, but here it is,


F:\zzz>SET DEBUG=electron-forge:*

F:\zzz>electron-forge --verbose init my-new-project --template=react
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 +828ms
  electron-forge:runtime-config setting key: verbose to value: true +0ms
WARNING: DEBUG environment variable detected.  Progress indicators will be sent over electron-forge:lifecycle
  electron-forge:init Initializing in: F:\zzz\my-new-project +0ms
  electron-forge:lifecycle Process Started: Initializing Project Directory +0ms
  electron-forge:init:directory creating directory: F:\zzz\my-new-project +0ms
  electron-forge:lifecycle Process Succeeded: Initializing Project Directory +18ms
  electron-forge:lifecycle Process Started: Initializing Git Repository +2ms
  electron-forge:init:git executing "git init" in directory: F:\zzz\my-new-project +0ms
  electron-forge:lifecycle Process Succeeded: Initializing Git Repository +185ms
  electron-forge:lifecycle Process Started: Copying Starter Files +1ms
  electron-forge:init:starter-files creating directory: F:\zzz\my-new-project\src +0ms
  electron-forge:init:starter-files copying "C:\Users\hjlgo\AppData\Local\Yarn\Data\global\node_modules\electron-forge\tmpl\_gitignore" --> "F:\zzz\my-new-project\.gitignore" +2ms
  electron-forge:init:starter-files copying "C:\Users\hjlgo\AppData\Local\Yarn\Data\global\node_modules\electron-forge\tmpl\_compilerc" --> "F:\zzz\my-new-project\.compilerc" +8ms
  electron-forge:init:starter-files copying "C:\Users\hjlgo\AppData\Local\Yarn\Data\global\node_modules\electron-forge\tmpl\index.js" --> "F:\zzz\my-new-project\src\index.js" +8ms
  electron-forge:init:starter-files copying "C:\Users\hjlgo\AppData\Local\Yarn\Data\global\node_modules\electron-forge\tmpl\index.html" --> "F:\zzz\my-new-project\src\index.html" +9ms
  electron-forge:lifecycle Process Succeeded: Copying Starter Files +35ms
  electron-forge:lifecycle Process Started: Initializing NPM Module +1ms
  electron-forge:init:npm writing package.json to: F:\zzz\my-new-project +0ms
  electron-forge:lifecycle Process Succeeded: Initializing NPM Module +244ms
  electron-forge:lifecycle Process Started: Installing NPM Dependencies +0ms
  electron-forge:init:npm installing dependencies +17ms
  electron-forge:dependency-installer installing ["electron-compile","electron-squirrel-startup"] in: F:\zzz\my-new-project dev=false,exact=false,withYarn=true +0ms
  electron-forge:dependency-installer executing ["add","electron-compile","electron-squirrel-startup"] in: F:\zzz\my-new-project +1ms
  electron-forge:runtime-config fetching key verbose +0ms
yarn add v1.12.3
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Saved lockfile.
success Saved 66 new dependencies.
info Direct dependencies
├─ electron-compile@6.4.3
└─ electron-squirrel-startup@1.0.0
info All dependencies
├─ @paulcbetts/mime-db@1.22.4
├─ @paulcbetts/mime-types@2.1.10
├─ @types/node@7.10.2
├─ ansi-regex@2.1.1
├─ balanced-match@1.0.0
├─ brace-expansion@1.1.11
├─ btoa@1.2.1
├─ builtin-modules@1.1.1
├─ camelcase@3.0.0
├─ cliui@3.2.0
├─ code-point-at@1.1.0
├─ concat-map@0.0.1
├─ debug@2.6.9
├─ decamelize@1.2.0
├─ electron-compile@6.4.3
├─ electron-squirrel-startup@1.0.0
├─ error-ex@1.3.2
├─ find-up@1.1.2
├─ fs.realpath@1.0.0
├─ get-caller-file@1.0.3
├─ glob@7.1.3
├─ hosted-git-info@2.7.1
├─ inflight@1.0.6
├─ inherits@2.0.3
├─ invert-kv@1.0.0
├─ is-arrayish@0.2.1
├─ is-builtin-module@1.0.0
├─ is-fullwidth-code-point@1.0.0
├─ is-utf8@0.2.1
├─ lcid@1.0.0
├─ load-json-file@1.1.0
├─ lodash.assign@4.2.0
├─ lru-cache@4.1.5
├─ minimatch@3.0.4
├─ minimist@0.0.8
├─ mkdirp@0.5.1
├─ ms@2.0.0
├─ normalize-package-data@2.4.0
├─ number-is-nan@1.0.1
├─ os-locale@1.4.0
├─ parse-json@2.2.0
├─ path-exists@2.1.0
├─ path-is-absolute@1.0.1
├─ path-type@1.1.0
├─ pinkie@2.0.4
├─ pseudomap@1.0.2
├─ read-pkg-up@1.0.1
├─ read-pkg@1.1.0
├─ require-directory@2.1.1
├─ require-main-filename@1.0.1
├─ rimraf@2.6.2
├─ semver@5.6.0
├─ set-blocking@2.0.0
├─ spawn-rx@2.0.12
├─ spdx-correct@3.1.0
├─ spdx-exceptions@2.2.0
├─ strip-bom@2.0.0
├─ symbol-observable@1.0.1
├─ validate-npm-package-license@3.0.4
├─ which-module@1.0.0
├─ window-size@0.2.0
├─ wrap-ansi@2.1.0
├─ y18n@3.2.1
├─ yallist@2.1.2
├─ yargs-parser@2.4.1
└─ yargs@4.8.1
Done in 19.82s.
  electron-forge:init:npm installing devDependencies +20s
  electron-forge:dependency-installer installing ["babel-preset-env","babel-preset-react","babel-plugin-transform-async-to-generator","electron-forge"] in: F:\zzz\my-new-project dev=true,exact=false,withYarn=true +20s
  electron-forge:dependency-installer executing ["add","babel-preset-env","babel-preset-react","babel-plugin-transform-async-to-generator","electron-forge","--dev"] in: F:\zzz\my-new-project +2ms
  electron-forge:runtime-config fetching key verbose +20s
yarn add v1.12.3
[1/4] Resolving packages...
warning electron-forge > s3 > graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
warning electron-forge > zip-folder > archiver > glob > minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
warning electron-forge > electron-installer-dmg > appdmg > execa > cross-spawn-async@2.2.5: cross-spawn no longer requires a build toolchain, use it instead
warning electron-forge > electron-windows-store > flatten-packages > wrench@1.5.9: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
warning electron-forge > nugget > progress-stream > through2 > xtend > object-keys@0.4.0:
[2/4] Fetching packages...
info electron-installer-debian@1.0.1: The platform "win32" is incompatible with this module.
info "electron-installer-debian@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-flatpak@0.8.0: The platform "win32" is incompatible with this module.
info "electron-installer-flatpak@0.8.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-redhat@0.5.0: The platform "win32" is incompatible with this module.
info "electron-installer-redhat@0.5.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info appdmg@0.4.5: The platform "win32" is incompatible with this module.
info "appdmg@0.4.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info fs-xattr@0.1.17: The platform "win32" is incompatible with this module.
info "fs-xattr@0.1.17" is an optional dependency and failed compatibility check. Excluding it from installation.
info macos-alias@0.2.11: The platform "win32" is incompatible with this module.
info "macos-alias@0.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 337 new dependencies.
info Direct dependencies
├─ babel-plugin-transform-async-to-generator@6.24.1
├─ babel-preset-env@1.7.0
├─ babel-preset-react@6.24.1
└─ electron-forge@5.2.3
info All dependencies
├─ @octokit/rest@15.18.0
├─ agent-base@4.2.1
├─ ajv@6.6.1
├─ ansi-escapes@3.1.0
├─ ansi-styles@3.2.1
├─ ansi@0.3.1
├─ aproba@1.2.0
├─ archiver@0.11.0
├─ argparse@1.0.10
├─ array-find-index@1.0.2
├─ asn1@0.2.4
├─ asynckit@0.4.0
├─ author-regex@1.0.0
├─ aws-sdk@2.375.0
├─ aws-sign2@0.7.0
├─ aws4@1.8.0
├─ babel-core@6.26.3
├─ babel-generator@6.26.1
├─ babel-helper-builder-binary-assignment-operator-visitor@6.24.1
├─ babel-helper-builder-react-jsx@6.26.0
├─ babel-helper-call-delegate@6.24.1
├─ babel-helper-define-map@6.26.0
├─ babel-helper-explode-assignable-expression@6.24.1
├─ babel-helpers@6.24.1
├─ babel-plugin-check-es2015-constants@6.22.0
├─ babel-plugin-syntax-exponentiation-operator@6.13.0
├─ babel-plugin-syntax-flow@6.18.0
├─ babel-plugin-syntax-trailing-function-commas@6.22.0
├─ babel-plugin-transform-async-to-generator@6.24.1
├─ babel-plugin-transform-es2015-arrow-functions@6.22.0
├─ babel-plugin-transform-es2015-block-scoped-functions@6.22.0
├─ babel-plugin-transform-es2015-block-scoping@6.26.0
├─ babel-plugin-transform-es2015-classes@6.24.1
├─ babel-plugin-transform-es2015-computed-properties@6.24.1
├─ babel-plugin-transform-es2015-destructuring@6.23.0
├─ babel-plugin-transform-es2015-duplicate-keys@6.24.1
├─ babel-plugin-transform-es2015-for-of@6.23.0
├─ babel-plugin-transform-es2015-function-name@6.24.1
├─ babel-plugin-transform-es2015-literals@6.22.0
├─ babel-plugin-transform-es2015-modules-amd@6.24.1
├─ babel-plugin-transform-es2015-modules-commonjs@6.26.2
├─ babel-plugin-transform-es2015-modules-systemjs@6.24.1
├─ babel-plugin-transform-es2015-modules-umd@6.24.1
├─ babel-plugin-transform-es2015-object-super@6.24.1
├─ babel-plugin-transform-es2015-parameters@6.24.1
├─ babel-plugin-transform-es2015-shorthand-properties@6.24.1
├─ babel-plugin-transform-es2015-spread@6.22.0
├─ babel-plugin-transform-es2015-sticky-regex@6.24.1
├─ babel-plugin-transform-es2015-template-literals@6.22.0
├─ babel-plugin-transform-es2015-typeof-symbol@6.23.0
├─ babel-plugin-transform-es2015-unicode-regex@6.24.1
├─ babel-plugin-transform-exponentiation-operator@6.24.1
├─ babel-plugin-transform-flow-strip-types@6.22.0
├─ babel-plugin-transform-react-display-name@6.25.0
├─ babel-plugin-transform-react-jsx-self@6.22.0
├─ babel-plugin-transform-react-jsx-source@6.22.0
├─ babel-plugin-transform-react-jsx@6.24.1
├─ babel-plugin-transform-regenerator@6.26.0
├─ babel-plugin-transform-strict-mode@6.24.1
├─ babel-preset-env@1.7.0
├─ babel-preset-flow@6.23.0
├─ babel-preset-react@6.24.1
├─ babel-register@6.26.0
├─ base64-js@1.3.0
├─ bcrypt-pbkdf@1.0.2
├─ before-after-hook@1.2.0
├─ binary@0.3.0
├─ bl@0.9.5
├─ block-stream@0.0.9
├─ bluebird@3.5.3
├─ browserslist@3.2.8
├─ btoa-lite@1.0.0
├─ buffer-alloc-unsafe@1.1.0
├─ buffer-alloc@1.2.0
├─ buffer-fill@1.0.0
├─ buffer@4.9.1
├─ buffers@0.1.1
├─ camelcase-keys@2.1.0
├─ caniuse-lite@1.0.30000918
├─ caseless@0.12.0
├─ chainsaw@0.1.0
├─ chalk@2.4.1
├─ chardet@0.4.2
├─ cli-cursor@2.1.0
├─ cli-spinners@1.3.1
├─ cli-width@2.2.0
├─ clone@1.0.4
├─ color-convert@1.9.3
├─ color-name@1.1.3
├─ colors@1.3.3
├─ combined-stream@1.0.7
├─ commander@2.19.0
├─ compare-version@0.1.2
├─ compress-commons@0.1.6
├─ concat-stream@1.6.2
├─ console-control-strings@1.1.0
├─ convert-source-map@1.6.0
├─ core-js@2.6.0
├─ core-util-is@1.0.2
├─ crc32-stream@0.3.4
├─ cross-spawn@5.1.0
├─ currently-unhandled@0.4.1
├─ dashdash@1.14.1
├─ decompress-zip@0.3.0
├─ deep-extend@0.6.0
├─ defaults@1.0.3
├─ delayed-stream@1.0.0
├─ delegates@1.0.0
├─ detect-indent@4.0.0
├─ detect-libc@1.0.3
├─ ecc-jsbn@0.1.2
├─ electron-download@4.1.1
├─ electron-forge-template-angular2@1.0.6
├─ electron-forge-template-react-typescript@1.0.6
├─ electron-forge-template-react@1.0.4
├─ electron-forge-template-vue@1.0.3
├─ electron-forge@5.2.3
├─ electron-installer-dmg@0.2.1
├─ electron-installer-snap@2.0.1
├─ electron-osx-sign@0.4.11
├─ electron-packager@11.2.0
├─ electron-rebuild@1.8.2
├─ electron-to-chromium@1.3.90
├─ electron-windows-store@0.12.0
├─ electron-winstaller@2.7.0
├─ electron-wix-msi@2.1.1
├─ end-of-stream@1.4.1
├─ env-paths@1.0.0
├─ es6-promise@4.2.5
├─ es6-promisify@5.0.0
├─ esprima@4.0.1
├─ events@1.1.1
├─ exact-version@1.0.2
├─ execa@0.10.0
├─ exit-hook@1.1.1
├─ expand-tilde@2.0.2
├─ extend@3.0.2
├─ external-editor@2.2.0
├─ extract-zip@1.6.7
├─ extsprintf@1.3.0
├─ fast-deep-equal@2.0.1
├─ fast-json-stable-stringify@2.0.0
├─ fd-slicer@1.0.1
├─ figures@2.0.0
├─ find-up@2.1.0
├─ findit2@2.2.3
├─ flatten-packages@0.1.4
├─ forever-agent@0.6.1
├─ form-data@2.3.3
├─ fs-extra@4.0.3
├─ fstream@1.0.11
├─ gauge@1.2.7
├─ get-installed-path@2.1.1
├─ get-package-info@1.0.0
├─ get-stdin@4.0.1
├─ get-stream@3.0.0
├─ getpass@0.1.7
├─ global-modules@1.0.0
├─ global-prefix@1.0.2
├─ globals@9.18.0
├─ har-schema@2.0.0
├─ har-validator@5.1.3
├─ has-ansi@2.0.0
├─ has-flag@3.0.0
├─ home-or-tmp@2.0.0
├─ http-proxy-agent@2.1.0
├─ http-signature@1.2.0
├─ https-proxy-agent@2.2.1
├─ iconv-lite@0.4.24
├─ ieee754@1.1.8
├─ indent-string@2.1.0
├─ ini@1.3.5
├─ inquirer@5.2.0
├─ is-finite@1.0.2
├─ is-promise@1.0.1
├─ is-typedarray@1.0.0
├─ is-wsl@1.1.0
├─ isbinaryfile@3.0.3
├─ isexe@2.0.0
├─ isstream@0.1.2
├─ jmespath@0.15.0
├─ js-tokens@4.0.0
├─ js-yaml@3.12.0
├─ jsesc@1.3.0
├─ json-schema-traverse@0.4.1
├─ json-schema@0.2.3
├─ json-stringify-safe@5.0.1
├─ json5@0.5.1
├─ jsonfile@2.4.0
├─ jsprim@1.4.1
├─ klaw@1.3.1
├─ lazystream@0.1.0
├─ locate-path@2.0.0
├─ lodash.defaults@4.2.0
├─ lodash.difference@4.5.0
├─ lodash.filter@4.6.0
├─ lodash.get@4.4.2
├─ lodash.pad@4.5.1
├─ lodash.padend@4.6.1
├─ lodash.padstart@4.6.1
├─ lodash.pull@4.1.0
├─ lodash.template@4.4.0
├─ lodash.templatesettings@4.1.0
├─ lodash.uniq@4.5.0
├─ lodash@4.17.11
├─ log-symbols@2.2.0
├─ loose-envify@1.4.0
├─ loud-rejection@1.6.0
├─ macos-release@2.0.0
├─ map-obj@1.0.1
├─ mem@1.1.0
├─ meow@3.7.0
├─ mime-db@1.37.0
├─ mime-types@2.1.21
├─ mime@1.2.11
├─ minimist@1.2.0
├─ mkpath@0.1.0
├─ multiline@1.0.2
├─ mute-stream@0.0.7
├─ mz@2.7.0
├─ natives@1.1.6
├─ nice-try@1.0.5
├─ node-abi@2.5.0
├─ node-fetch@2.3.0
├─ node-gyp@3.8.0
├─ nodeify@1.0.1
├─ nopt@3.0.6
├─ npm-run-path@2.0.2
├─ npmlog@4.1.2
├─ oauth-sign@0.9.0
├─ object-keys@0.4.0
├─ onetime@2.0.1
├─ opn@5.4.0
├─ ora@2.1.0
├─ os-name@3.0.0
├─ os-shim@0.1.3
├─ osenv@0.1.5
├─ p-finally@1.0.0
├─ p-limit@1.3.0
├─ p-locate@2.0.0
├─ p-try@1.0.0
├─ parse-author@2.0.0
├─ parse-passwd@1.0.0
├─ path-parse@1.0.6
├─ performance-now@2.1.0
├─ plist@2.1.0
├─ pretty-bytes@1.0.4
├─ private@0.1.8
├─ process-nextick-args@2.0.0
├─ progress-stream@1.2.0
├─ promise@1.3.0
├─ pruner@0.0.7
├─ psl@1.1.31
├─ punycode@1.3.2
├─ q@1.5.1
├─ qs@6.5.2
├─ rc@1.2.8
├─ rcedit@1.1.1
├─ readable-stream@1.0.34
├─ redent@1.0.0
├─ regenerate@1.4.0
├─ regenerator-runtime@0.11.1
├─ regenerator-transform@0.10.1
├─ regexpu-core@2.0.0
├─ regjsgen@0.2.0
├─ regjsparser@0.1.5
├─ request@2.88.0
├─ resolve-dir@1.0.1
├─ resolve-package@1.0.1
├─ resolve@1.8.1
├─ restore-cursor@2.0.0
├─ run-async@2.3.0
├─ rx-lite-aggregates@4.0.8
├─ rx-lite@4.0.8
├─ rx@4.1.0
├─ s3@4.4.0
├─ safe-buffer@5.1.2
├─ safer-buffer@2.1.2
├─ sanitize-filename@1.6.1
├─ sax@1.2.1
├─ shebang-command@1.2.0
├─ shebang-regex@1.0.0
├─ sigmund@1.0.1
├─ single-line-log@1.1.2
├─ slash@1.0.0
├─ source-map-support@0.4.18
├─ spawn-sync@1.0.15
├─ speedometer@0.1.4
├─ sprintf-js@1.0.3
├─ sshpk@1.15.2
├─ streamsink@1.2.0
├─ strip-indent@1.0.1
├─ strip-json-comments@2.0.1
├─ sudo-prompt@8.2.5
├─ sumchecker@2.0.2
├─ supports-color@5.5.0
├─ tabtab@2.2.2
├─ tar-stream@0.4.7
├─ tar@2.2.1
├─ thenify-all@1.6.0
├─ thenify@3.3.0
├─ throttleit@0.0.2
├─ through@2.3.8
├─ through2@0.2.3
├─ tmp-promise@1.0.5
├─ to-fast-properties@1.0.3
├─ touch@0.0.3
├─ tough-cookie@2.4.3
├─ traverse@0.3.9
├─ trim-newlines@1.0.0
├─ trim-right@1.0.1
├─ truncate-utf8-bytes@1.0.2
├─ tunnel-agent@0.6.0
├─ tweetnacl@0.14.5
├─ typedarray@0.0.6
├─ universal-user-agent@2.0.2
├─ uri-js@4.2.2
├─ url-template@2.0.8
├─ url@0.10.3
├─ username@3.0.0
├─ utf8-byte-length@1.0.4
├─ util-deprecate@1.0.2
├─ uuid@3.3.2
├─ verror@1.10.0
├─ wcwidth@1.0.1
├─ which@1.3.1
├─ wide-align@1.1.3
├─ windows-release@3.1.0
├─ wrench@1.5.9
├─ xml2js@0.4.19
├─ xmlbuilder@9.0.7
├─ xtend@4.0.1
├─ yargs-parser@5.0.0
├─ yarn-or-npm@2.0.4
├─ yauzl@2.4.1
├─ zip-folder@1.0.0
└─ zip-stream@0.4.1
Done in 76.89s.
  electron-forge:init:npm installing exact dependencies +1m
  electron-forge:dependency-installer installing ["electron-prebuilt-compile"] in: F:\zzz\my-new-project dev=true,exact=true,withYarn=true +1m
  electron-forge:dependency-installer executing ["add","electron-prebuilt-compile","--dev","--exact"] in: F:\zzz\my-new-project +2ms
  electron-forge:runtime-config fetching key verbose +1m
yarn add v1.12.3
[1/4] Resolving packages...
warning electron-prebuilt-compile > electron-compilers > coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
warning electron-prebuilt-compile > electron-compilers > cson > coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
warning electron-prebuilt-compile > electron-compilers > jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
warning electron-prebuilt-compile > electron-compilers > cson > cson-parser > coffee-script@1.12.7: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
warning electron-prebuilt-compile > electron-compilers > jade > constantinople@3.0.2: Please update to at least constantinople 3.1.1
warning electron-prebuilt-compile > electron-compilers > jade > transformers@2.1.0: Deprecated, use jstransformer
warning electron-prebuilt-compile > electron-compilers > less > request > hawk > hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
warning electron-prebuilt-compile > electron-compilers > less > request > hawk > sntp > hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
warning electron-prebuilt-compile > electron-compilers > @paulcbetts/vueify > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning electron-prebuilt-compile > electron-compilers > @paulcbetts/vueify > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning electron-prebuilt-compile > electron-compilers > @paulcbetts/vueify > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning electron-prebuilt-compile > electron-compilers > less > request > hawk > boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
warning electron-prebuilt-compile > electron-compilers > less > request > hawk > boom > hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
warning electron-prebuilt-compile > electron-compilers > less > request > hawk > cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
warning electron-prebuilt-compile > electron-compilers > less > request > hawk > cryptiles > boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
[2/4] Fetching packages...
info electron-installer-debian@1.0.1: The platform "win32" is incompatible with this module.
info "electron-installer-debian@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-flatpak@0.8.0: The platform "win32" is incompatible with this module.
info "electron-installer-flatpak@0.8.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-redhat@0.5.0: The platform "win32" is incompatible with this module.
info "electron-installer-redhat@0.5.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info appdmg@0.4.5: The platform "win32" is incompatible with this module.
info "appdmg@0.4.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info fs-xattr@0.1.17: The platform "win32" is incompatible with this module.
info "fs-xattr@0.1.17" is an optional dependency and failed compatibility check. Excluding it from installation.
info macos-alias@0.2.11: The platform "win32" is incompatible with this module.
info "macos-alias@0.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 171 new dependencies.
info Direct dependencies
└─ electron-prebuilt-compile@3.0.10
info All dependencies
├─ @babel/parser@7.2.0
├─ @paulcbetts/vueify@9.4.3
├─ abab@1.0.4
├─ acorn-globals@1.0.9
├─ acorn@2.7.0
├─ align-text@0.1.4
├─ asap@2.0.6
├─ autoprefixer@6.7.7
├─ babel-plugin-array-includes@2.0.3
├─ babel-plugin-syntax-async-generators@6.13.0
├─ babel-preset-es2016-node5@1.1.2
├─ browserslist@1.7.7
├─ caniuse-api@1.6.1
├─ caniuse-db@1.0.30000918
├─ center-align@0.1.3
├─ character-parser@1.2.1
├─ cheerio@0.20.0
├─ clap@1.2.3
├─ clean-css@3.4.28
├─ co@4.6.0
├─ coa@1.0.4
├─ color-string@0.3.0
├─ color@0.11.4
├─ colormin@1.1.2
├─ constantinople@3.0.2
├─ cryptiles@2.0.5
├─ cson-parser@1.3.5
├─ cson@3.0.2
├─ css-color-names@0.0.4
├─ css-parse@1.7.0
├─ css-select@1.2.0
├─ css-stringify@1.0.5
├─ css-what@2.1.2
├─ css@1.0.8
├─ cssnano@3.10.0
├─ csso@2.3.2
├─ cssom@0.3.4
├─ cssstyle@0.2.37
├─ de-indent@1.0.2
├─ deep-is@0.1.3
├─ defined@1.0.0
├─ detective-less@1.0.2
├─ detective-sass@2.0.1
├─ detective-scss@1.0.1
├─ detective-stylus@1.0.0
├─ dom-serializer@0.1.0
├─ domhandler@2.3.0
├─ domutils@1.5.1
├─ eachr@3.2.0
├─ editions@1.3.4
├─ electron-compilers@5.9.0
├─ electron-prebuilt-compile@3.0.10
├─ electron@3.0.10
├─ errlop@1.0.3
├─ errno@0.1.7
├─ es6-promise@3.3.1
├─ escodegen@1.8.1
├─ esprima@2.7.3
├─ estraverse@1.9.3
├─ extract-opts@3.3.1
├─ fast-levenshtein@2.0.6
├─ flatten@1.0.2
├─ function-bind@1.1.1
├─ graceful-readlink@1.0.1
├─ graphql-tag@2.10.0
├─ graphql@0.9.6
├─ handlebars@4.0.12
├─ has-flag@1.0.0
├─ hash-sum@1.0.2
├─ hawk@3.1.3
├─ he@1.2.0
├─ html-comment-regex@1.1.2
├─ htmlparser2@3.8.3
├─ indexes-of@1.0.1
├─ is-absolute-url@2.1.0
├─ is-buffer@1.1.6
├─ is-plain-obj@1.1.0
├─ is-svg@2.1.0
├─ istanbul@0.4.5
├─ iterall@1.2.2
├─ jade@1.11.0
├─ js-base64@2.4.9
├─ js-string-escape@1.0.1
├─ jsdom@7.2.2
├─ json-stable-stringify@1.0.1
├─ jsonify@0.0.0
├─ jstransformer@0.0.2
├─ kind-of@3.2.2
├─ lazy-cache@1.0.4
├─ less@2.7.3
├─ levn@0.3.0
├─ lodash.memoize@4.1.2
├─ longest@1.0.1
├─ math-expression-evaluator@1.2.17
├─ nib@1.1.2
├─ normalize-range@0.1.2
├─ normalize-url@1.9.1
├─ nth-check@1.0.2
├─ num2fraction@1.2.2
├─ nwmatcher@1.4.4
├─ optimist@0.6.1
├─ optionator@0.8.2
├─ parse5@1.5.1
├─ postcss-calc@5.3.1
├─ postcss-colormin@2.2.2
├─ postcss-convert-values@2.6.1
├─ postcss-discard-comments@2.0.4
├─ postcss-discard-duplicates@2.1.0
├─ postcss-discard-empty@2.1.0
├─ postcss-discard-overridden@0.1.1
├─ postcss-discard-unused@2.2.3
├─ postcss-filter-plugins@2.0.3
├─ postcss-merge-idents@2.1.7
├─ postcss-merge-longhand@2.0.2
├─ postcss-merge-rules@2.1.2
├─ postcss-message-helpers@2.0.0
├─ postcss-minify-font-values@1.0.5
├─ postcss-minify-gradients@1.0.5
├─ postcss-minify-params@1.2.2
├─ postcss-minify-selectors@2.1.1
├─ postcss-normalize-charset@1.1.1
├─ postcss-normalize-url@3.0.8
├─ postcss-ordered-values@2.2.3
├─ postcss-reduce-idents@2.4.0
├─ postcss-reduce-initial@1.0.1
├─ postcss-reduce-transforms@1.0.4
├─ postcss-selector-parser@2.2.3
├─ postcss-svgo@2.1.6
├─ postcss-unique-selectors@2.0.2
├─ postcss-zindex@2.2.0
├─ prepend-http@1.0.4
├─ promise@7.3.1
├─ prr@1.0.1
├─ query-string@4.3.4
├─ reduce-css-calc@1.3.0
├─ reduce-function-call@1.0.2
├─ requirefresh@2.1.0
├─ right-align@0.1.3
├─ safefs@4.1.0
├─ sander@0.5.1
├─ sass-lookup@1.1.0
├─ sass.js@0.10.13
├─ sntp@1.0.9
├─ sorcery@0.10.0
├─ sort-keys@1.1.2
├─ sourcemap-codec@1.4.4
├─ strict-uri-encode@1.1.0
├─ stringstream@0.0.6
├─ stylus-lookup@1.0.2
├─ stylus@0.54.5
├─ supports-color@3.2.3
├─ svgo@0.7.2
├─ symbol-tree@3.2.2
├─ synchronous-promise@1.0.18
├─ toutsuite@0.6.0
├─ tr46@0.0.3
├─ transformers@2.1.0
├─ typescript@3.2.2
├─ uglify-js@2.8.29
├─ uglify-to-browserify@1.0.2
├─ uniq@1.0.1
├─ vendors@1.0.2
├─ void-elements@2.0.1
├─ vue-hot-reload-api@2.3.1
├─ vue-template-compiler@2.5.21
├─ vue-template-es2015-compiler@1.6.0
├─ webidl-conversions@2.0.1
├─ whatwg-url-compat@0.6.5
├─ whet.extend@0.9.9
├─ with@4.0.3
└─ xml-name-validator@2.0.1
Done in 88.48s.
  electron-forge:init:npm not installing linting deps +1m
  electron-forge:lifecycle Process Succeeded: Installing NPM Dependencies +3m
  electron-forge:lifecycle Process Started: Locating custom template: "react" +2ms
  electron-forge:init:custom using local template +0ms
  electron-forge:lifecycle Process Succeeded: Locating custom template: "react" +9ms
  electron-forge:lifecycle Process Started: Installing Template Dependencies +8ms
  electron-forge:init:custom installing dependencies +9ms
  electron-forge:dependency-installer installing ["electron-devtools-installer@^2.1.0","react@^15.4.1","react-dom@^15.4.1","react-hot-loader@^3.0.0-beta.6"] in: F:\zzz\my-new-project dev=false,exact=false,withYarn=true +1m
  electron-forge:dependency-installer executing ["add","electron-devtools-installer@^2.1.0","react@^15.4.1","react-dom@^15.4.1","react-hot-loader@^3.0.0-beta.6"] in: F:\zzz\my-new-project +1ms
  electron-forge:runtime-config fetching key verbose +1m
yarn add v1.12.3
[1/4] Resolving packages...
[2/4] Fetching packages...
info electron-installer-debian@1.0.1: The platform "win32" is incompatible with this module.
info "electron-installer-debian@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-flatpak@0.8.0: The platform "win32" is incompatible with this module.
info "electron-installer-flatpak@0.8.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-redhat@0.5.0: The platform "win32" is incompatible with this module.
info "electron-installer-redhat@0.5.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info appdmg@0.4.5: The platform "win32" is incompatible with this module.
info "appdmg@0.4.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info fs-xattr@0.1.17: The platform "win32" is incompatible with this module.
info "fs-xattr@0.1.17" is an optional dependency and failed compatibility check. Excluding it from installation.
info macos-alias@0.2.11: The platform "win32" is incompatible with this module.
info "macos-alias@0.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 23 new dependencies.
info Direct dependencies
├─ electron-devtools-installer@2.2.4
├─ react-dom@15.6.2
├─ react-hot-loader@3.1.3
└─ react@15.6.2
info All dependencies
├─ 7zip@0.0.6
├─ create-react-class@15.6.3
├─ cross-unzip@0.0.2
├─ dom-walk@0.1.1
├─ electron-devtools-installer@2.2.4
├─ encoding@0.1.12
├─ error-stack-parser@1.3.6
├─ global@4.3.2
├─ isomorphic-fetch@2.2.1
├─ min-document@2.19.0
├─ process@0.5.2
├─ prop-types@15.6.2
├─ react-deep-force-update@2.1.3
├─ react-dom@15.6.2
├─ react-hot-loader@3.1.3
├─ react-proxy@3.0.0-alpha.1
├─ react@15.6.2
├─ redbox-react@1.6.0
├─ setimmediate@1.0.5
├─ sourcemapped-stacktrace@1.1.9
├─ stackframe@0.3.1
├─ ua-parser-js@0.7.19
└─ whatwg-fetch@3.0.0
Done in 85.50s.
  electron-forge:init:custom installing devDependencies +1m
  electron-forge:dependency-installer installing ["babel-plugin-transform-es2015-classes","eslint@^3","eslint-config-airbnb@^15","eslint-plugin-import@^2","eslint-plugin-jsx-a11y@^5","eslint-plugin-react@^7"] in: F:\zzz\my-new-project dev=true,exact=false,withYarn=true +1m
  electron-forge:dependency-installer executing ["add","babel-plugin-transform-es2015-classes","eslint@^3","eslint-config-airbnb@^15","eslint-plugin-import@^2","eslint-plugin-jsx-a11y@^5","eslint-plugin-react@^7","--dev"] in: F:\zzz\my-new-project +1ms
  electron-forge:runtime-config fetching key verbose +1m
yarn add v1.12.3
[1/4] Resolving packages...
warning eslint > file-entry-cache > flat-cache > circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
[2/4] Fetching packages...
warning Pattern ["babel-plugin-transform-es2015-classes@^6.24.1"] is trying to unpack in the same destination "C:\\Users\\hjlgo\\AppData\\Local\\Yarn\\Cache\\v4\\npm-babel-plugin-transform-es2015-classes-6.24.1-5a4c58a50c9c9461e564b4b2a3bfabc97a2584db\\node_modules\\babel-plugin-transform-es2015-classes" as pattern ["babel-plugin-transform-es2015-classes@^6.23.0"]. This could result in non-deterministic behavior, skipping.
info electron-installer-debian@1.0.1: The platform "win32" is incompatible with this module.
info "electron-installer-debian@1.0.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-flatpak@0.8.0: The platform "win32" is incompatible with this module.
info "electron-installer-flatpak@0.8.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info electron-installer-redhat@0.5.0: The platform "win32" is incompatible with this module.
info "electron-installer-redhat@0.5.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info appdmg@0.4.5: The platform "win32" is incompatible with this module.
info "appdmg@0.4.5" is an optional dependency and failed compatibility check. Excluding it from installation.
info fs-xattr@0.1.17: The platform "win32" is incompatible with this module.
info "fs-xattr@0.1.17" is an optional dependency and failed compatibility check. Excluding it from installation.
info macos-alias@0.2.11: The platform "win32" is incompatible with this module.
info "macos-alias@0.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 62 new dependencies.
info Direct dependencies
├─ babel-plugin-transform-es2015-classes@6.24.1
├─ eslint-config-airbnb@15.1.0
├─ eslint-plugin-import@2.14.0
├─ eslint-plugin-jsx-a11y@5.1.1
├─ eslint-plugin-react@7.11.1
└─ eslint@3.19.0
info All dependencies
├─ acorn-jsx@3.0.1
├─ ajv-keywords@1.5.1
├─ aria-query@0.7.1
├─ axobject-query@0.1.0
├─ babel-plugin-transform-es2015-classes@6.24.1
├─ caller-path@0.1.0
├─ callsites@0.2.0
├─ circular-json@0.3.3
├─ contains-path@0.1.0
├─ damerau-levenshtein@1.0.4
├─ define-properties@1.1.3
├─ doctrine@2.1.0
├─ emoji-regex@6.5.1
├─ es-abstract@1.12.0
├─ es-to-primitive@1.2.0
├─ es6-map@0.1.5
├─ es6-set@0.1.5
├─ es6-symbol@3.1.1
├─ es6-weak-map@2.0.2
├─ escope@3.6.0
├─ eslint-config-airbnb-base@11.3.2
├─ eslint-config-airbnb@15.1.0
├─ eslint-import-resolver-node@0.3.2
├─ eslint-module-utils@2.2.0
├─ eslint-plugin-import@2.14.0
├─ eslint-plugin-jsx-a11y@5.1.1
├─ eslint-plugin-react@7.11.1
├─ eslint-restricted-globals@0.1.1
├─ eslint@3.19.0
├─ espree@3.5.4
├─ esquery@1.0.1
├─ esrecurse@4.2.1
├─ file-entry-cache@2.0.0
├─ flat-cache@1.3.4
├─ has-symbols@1.0.0
├─ ignore@3.3.10
├─ imurmurhash@0.1.4
├─ inquirer@0.12.0
├─ interpret@1.1.0
├─ is-callable@1.1.4
├─ is-date-object@1.0.1
├─ is-regex@1.0.4
├─ is-resolvable@1.1.0
├─ is-symbol@1.0.2
├─ jsx-ast-utils@1.4.1
├─ natural-compare@1.4.0
├─ next-tick@1.0.0
├─ object-keys@1.0.12
├─ path-is-inside@1.0.2
├─ pkg-dir@1.0.0
├─ pluralize@1.2.1
├─ progress@1.1.8
├─ readline2@1.0.1
├─ rechoir@0.6.2
├─ require-uncached@1.0.3
├─ resolve-from@1.0.1
├─ shelljs@0.7.8
├─ slice-ansi@0.0.4
├─ table@3.8.3
├─ text-table@0.2.0
├─ user-home@2.0.0
└─ write@0.2.1
Done in 129.75s.
  electron-forge:lifecycle Process Succeeded: Installing Template Dependencies +4m
  electron-forge:lifecycle Process Started: Copying Template Files +3ms
  electron-forge:init:starter-files copying "C:/Users/hjlgo/AppData/Local/Yarn/Data/global/node_modules/electron-forge-template-react/tmpl/_compilerc" --> "F:\zzz\my-new-project\.compilerc" +7m
  electron-forge:lifecycle Process Failed: Copying Template Files +12ms

An unhandled error has occurred inside Forge:
EISDIR: illegal operation on a directory, readlink 'F:\zzz\my-new-project\.compilerc'
Error: EISDIR: illegal operation on a directory, readlink 'F:\zzz\my-new-project\.compilerc'
hjlgood commented 5 years ago

After getting the above error, I just get normal electron template (which works), without React.

malept commented 5 years ago

This is very strange. The only thing I can think of is that you decided to run npm install -g electron-forge-template-react instead of npm install -g electron-forge, and that is somehow being very strange. Perhaps try uninstalling and reinstalling:

npm uninstall -g electron-forge-template-react electron-forge
npm install -g electron-forge

electron-forge-template-react comes with electron-forge in v5 by default.

hjlgood commented 5 years ago

Still doesn't work. I ended up downloading someone's react-electron boilerplate. thanks for your help though.

jamesehly commented 5 years ago

I got this same error when trying to init a project on an external drive. It worked fine on my internal drive so I just created it there and then copied it to my external drive. If you google search for "EISDIR: illegal operation on a directory, readlink" there are lots of reasons why this can happen, so I don't think it has anything to do with electron-forge