Must electron packer be globally installed? #61

Open
opened 2026-01-29 16:29:37 +00:00 by claunia · 0 comments
Owner

Originally created by @robertmuehsig on GitHub (Nov 12, 2017).

Originally assigned to: @GregorBiswanger on GitHub.

From this comment

You say

"Be aweare that dotnet electonize build require that the electron packer is installed globally via npm."
Using of global node modules is not very good idea. User should not be able to run commands as root.
For what purpose u use global node modules? Just because u can do it?
Can u just use node_modules folder from project?

Currently we assume that electron packer is installed globally and under Windows we even just install it globally.

From the electron packer page:

This module requires Node.js 4.0 or higher to run.

for use in npm scripts

npm install electron-packager --save-dev

for use from cli

npm install electron-packager -g

The question is: Is this needed? I'm not sure, maybe @GregorBiswanger knows more.

Originally created by @robertmuehsig on GitHub (Nov 12, 2017). Originally assigned to: @GregorBiswanger on GitHub. From this [comment](https://github.com/ElectronNET/Electron.NET/issues/36#issuecomment-343642402) > You say > "Be aweare that dotnet electonize build require that the electron packer is installed globally via npm." > Using of global node modules is not very good idea. User should not be able to run commands as root. > For what purpose u use global node modules? Just because u can do it? > Can u just use node_modules folder from project? Currently we assume that electron packer is installed globally and under Windows we even just install it globally. From the electron packer [page](https://github.com/electron-userland/electron-packager): > This module requires Node.js 4.0 or higher to run. > # for use in npm scripts > npm install electron-packager --save-dev > # for use from cli > npm install electron-packager -g The question is: Is this needed? I'm not sure, maybe @GregorBiswanger knows more.
claunia added the question label 2026-01-29 16:29:37 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#61