How to packaging the App?


#1

Hi,
Can anybody please guide me how to create executable file for windows in electron and node js. I am newbie in this framework. I am using npm version :3.10.10 and electron-packager version : 8.5.0. Whenever i put > electron-packager . i am getting the error below

My package.json is…

{
“name”: “electronexe”,
“version”: “1.0.0”,
“description”: “test”,
“main”: “main.js”,
“scripts”: {
“start”: “electron .”,
“package”:“electron-packager . electronexe --platform=win64 --arch=x64”
},
“author”: “krish”,
“license”: “ISC”,
“devDependencies”:{
“electron”: “1.4.14”
}
}


#2

The first thing you have to do here is either add the directory containing electron-packager to your path, or specify it in the command like this:

node_modules\.bin\electron-packager .

(I’m assuming here that npm sets up the same directories on Windows as it does on Linux.)
I’m not familiar with that package, so I don’t know if you need to do anything else.