automation-stack / electron-sudo

Electron subprocesses with administrative privileges, prompting the user with an OS dialog if necessary.
MIT License
382 stars 55 forks source link

Module Not-found when build release version #44

Closed hieund-hblab closed 7 years ago

hieund-hblab commented 7 years ago

I use electron-sudo to my project, it work fine when start app on dev with command npm start. But when I use npm run release to build release version (OSX) DMG file, when open app (after install) have error: Module electron-sudo not found. Another module was work fine. Please support me, thank so much!

automation-stack commented 7 years ago

it is very difficult to say something on the basis of these data, sorry

hieund-hblab commented 7 years ago

hey @automation-stack, This image is error alert when I open app was developed by electron used your module (electron-sudo) image Please help me, thanks!

NoahAndrews commented 7 years ago

You probably saved electron-sudo to your devDependencies in package.js. Those aren't included with the release version, which is why it can't be found. Put it in dependencies instead to fix the problem. Hope that helps!