mongodb-js / electron-squirrel-startup

Default Squirrel.Windows event handler for your Electron apps.
Apache License 2.0
217 stars 41 forks source link

Cannot find module 'electron-squirrel-startup' again #33

Closed Radamanf closed 6 years ago

Radamanf commented 6 years ago

I'm trying to compile latest code to date: MavensMate-Desktop-0.0.11-beta.7 on Arch Linux with the help I've found somewhere:

Download MavensMate server and run npm commands.
https://github.com/joeferraro/MavensMate
Download the Zip file.
Run: npm install
Run: npm start

Run your MavensMate in your browser
http://localhost:56248/app/home

but just running "npm install" was stuck in the loop with the following:

undefined postinstall /home/geb/soft/MavensMate/MavensMate-Desktop-0.0.11-beta.7 install-app-deps

so then I've tried "sudo npm install" and installation finished with some warnings:

npm WARN lifecycle undefined~postinstall: cannot run in wd %s %s (wd=%s) undefined install-app-deps /home/geb/soft/MavensMate/MavensMate-Desktop-0.0.11-beta.7 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: appdmg@^0.4.5 (node_modules/electron-builder/node_modules/appdmg): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for appdmg@0.4.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-osx@^1.0.0 (node_modules/7zip-bin/node_modules/7zip-bin-osx): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-osx@1.0.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 7zip-bin-win@^1.0.0 (node_modules/7zip-bin/node_modules/7zip-bin-win): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for 7zip-bin-win@1.0.0: wanted {"os":"win32","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN react-dock@0.2.4 requires a peer of babel-runtime@^6.3.13 but none was installed. npm WARN sass-loader@4.1.1 requires a peer of node-sass@^3.4.2 || ^4.0.0 but none was installed. npm WARN MavensMate-Desktop-0.0.11-beta.7 No repository field. npm WARN MavensMate-Desktop-0.0.11-beta.7 No license field.

The problem is when I run "npm start" or "sudo npm start" it gives me an error

Cannot find module 'electron-squirrel-startup'

I've search and found a few closed cases related to this issue, but there are no real solution or no proper explanation for external developer (using other languages) to follow. What I can do to fix it?

related issues: https://github.com/electron/windows-installer/issues/193 https://github.com/mongodb-js/electron-squirrel-startup/issues/27 https://github.com/mongodb-js/electron-squirrel-startup/issues/25

Radamanf commented 6 years ago

Should open agains MavensMate not against electron, sorry. Link new issue: https://github.com/joeferraro/MavensMate/issues/1012