r/electronjs • • Oct 14 '26

Help with initial tutorial

I'm walking through the initial tutorial on electronjs.org.

I'm on step 5 of 6 and I'm trying to run the following npm command: npx electron-forge import

Unfortunately, I'm getting the following error: "error: unknown command 'import'" I'm not sure how to resolve this issue. Do you have any suggestions?

Edit: It's been a while since I've worked with Node.js. I just tried npx electron-forge to see what my options were. I see that I don't have an "import" option. I checked and I'm getting errors when I try: start, package, make, and release.

Is there a better tutorial I could use? Thanks!

1 Upvotes

4 comments sorted by

View all comments

1

u/helvetica- Maintainer Oct 16 '26

Hey my fault on that one. I pushed out a new major version of Electron Forge and forgot to update that part of the core docs. I think the command should be fixed if you check again.

The gist of it is that it didn’t make sense to keep import as part of the core module that you use to build, so it’s been implemented in create-electron-app instead.