forge: not able to init a project

Please describe your issue: hi I installed your package and tried to init a new project but I’m getting the following error after running that command

Console output when you run electron-forge with the environment variable DEBUG=electron-forge:*. (Instructions on how to do so here. Please include the stack trace if one exists.

TypeError: ["airbnb","standard"].includes is not a function
    at _callee$ (/usr/local/lib/node_modules/electron-forge/dist/electron-forge-init.js:67:41)
    at tryCatch (/usr/local/lib/node_modules/electron-forge/node_modules/regenerator-runtime/runtime.js:64:40)
    at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/electron-forge/node_modules/regenerator-runtime/runtime.js:355:22)
    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/electron-forge/node_modules/regenerator-runtime/runtime.js:116:21)
    at GeneratorFunctionPrototype.tryCatcher (/usr/local/lib/node_modules/electron-forge/node_modules/bluebird/js/release/util.js:16:23)
    at PromiseSpawn._promiseFulfilled (/usr/local/lib/node_modules/electron-forge/node_modules/bluebird/js/release/generators.js:97:49)
    at /usr/local/lib/node_modules/electron-forge/node_modules/bluebird/js/release/generators.js:201:15
    at main (/usr/local/lib/node_modules/electron-forge/dist/electron-forge-init.js:105:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/electron-forge/dist/electron-forge-init.js:109:1)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:146:18)
    at node.js:404:3

What command line arguments are you passing?

electron-forge init forgetest

What does your config.forge data in package.json look like?

does not exist

Please provide either a failing minimal testcase (with a link to the code) or detailed steps to reproduce your problem. Using electron-forge init is a good starting point, if that is not the source of your problem.

sudo npm install -g electron-forge (without problems)
electron-forge init forgetest (error)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (13 by maintainers)

Commits related to this issue

Most upvoted comments

@malept 5 is only get sec patches now I think, would make sense to just stick to LTS versions that we can support šŸ‘ People should be moving to 6 anyway šŸ˜†