question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron-packager is not recognized as a cmdlet name (Windows)

See original GitHub issue

I installed electron-packager, but I can not use it:

The term 'electron-packager' is not recognized as a cmdlet name......

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

13reactions
englishextracommented, Feb 5, 2017

Install electron and electron-packager globally:

npm install -g electron electron-packager

This will install electron 1.4.15 and electron-packager 8.5.1 into your user folder, not in project folder:

C:\Users\Administrador\AppData\Roaming\npm

or it can be some Documents and Settings, anyway you dont have to bother about this folder and touch anything there.

Delete if present node_modules folder in your project folder. go in cmd. exe to your project folder:

electron-packager . --all --electron-version=1.4.15

Dont use PS, use cmd.exe

2reactions
nshukla6commented, May 3, 2018

npm install electron-packager -g npm install electron-packager --save-dev

Install both locally as well as globally will solve the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

'electron-packager' is not recognized as an internal or external ...
You've to install electron-packager globally, that's why it shows 'electron-packager' is not recognized as an internal or external command.
Read more >
electron-packager - npm
Electron Packager. Package your Electron app into OS-specific bundles ( .app , .exe , etc.) via JavaScript or the command line.
Read more >
'electron' is not recognized as an internal or external command
You can resolve this issue in three ways: First, use the full path of the executable file to launch the program. Second, add...
Read more >
Build Instructions (Windows) - Electron
node-gyp is not recognized as an internal or external command​ ... You may get this error if you are using Git Bash for...
Read more >
electron-builder
Two package.json structure is supported, but you are not forced to use it even ... Docker images to build Electron app for Linux...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found