gillesdemey / Cumulus

☁️ A SoundCloud player that lives in your menubar.
http://gillesdemey.github.io/Cumulus
MIT License
1.44k stars 124 forks source link

Uncaught Exception: Error: Cannot find module 'electron-settings' #110

Open star114 opened 6 years ago

star114 commented 6 years ago

Hi,

I got an exception when starting to run the application that I compiled locally.

A JavaScript error occurred in the main process Uncaught Exception: Error: Cannot find module 'electron-settings' at Module._resolveFilename(module.js:470:15) ...

exception

Do you have any ideas for it?

anitricks commented 6 years ago

I went through the same issue. I did mine with npm because yarn was giving me issues

install everything with npm install but install electron-settings module version 2.2.2 so do npm install electron-settings@2.2.2 and then build with grunt build it should work

I used the latest npm and grunt

star114 commented 6 years ago

@anitricks Thanks! I'll try it.

star114 commented 6 years ago

yarn is not working properly in my mac. (mac osx high sierra) I tried to build using npm as @anitricks mentioned above, and it works well.

Thank you, @anitricks!!

star114 commented 6 years ago

yarn dependency is broken currently.

build is successful, but running built app is failing due to "cannot find the module 'electron-settings'"

Amitabh95 commented 3 years ago

Try this. I worked for me. https://github.com/electron/electron-packager/issues/992#issuecomment-493643251