Electron: Electron-packager: command not found

Asked

Viewed 739 times

1

I’m not able to create the application using the electron.

I install the package and when I will execute the command:

electron-packager d/dev/puxa Puxa

I get the following error message:

"Bash: Electron-packager: command not found".

$ npm install electron-packager -g

oaming\npm\node_modules\electron-packager\cli.js

+ [email protected]

updated 1 package in 6.641s

$ electron-packager /d/[

"bash: Electron-packager: command not found*".

  • Try this: npm install -g Electron-packager

1 answer

1


I got it this way.

In the . json file add

 "scripts": {
 "package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
"package-win": "electron-packager . electron-tutorial-app --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Coloque aqui o nome da aplicacao\"",    
"package-linux": "electron-packager . electron-tutorial-app --overwrite --asar=true --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds"
 }

No bash execute

 npm run packager-win

Browser other questions tagged

You are not signed in. Login or sign up in order to post.