Error: Cannot find module 'electron-squirrel-startup'

Discussão em 'Angular' iniciado por Jordi Carné, Outubro 23, 2024.

  1. Jordi Carné

    Jordi Carné Guest

    I'm trying to manage the setup events of my electron app made using squirrel. As suggested by the documentation, I'm trying to use squirrel startup on my main.js, but when I run the setup.exe i get this error "Error: Cannot find module 'electron-squirrel-startup'".

    I've added the module as a dependency (not dev dependency) in my package.json.

    Any idea of what I'm doing wrong?

    I tried deleting the node_modules folder and running npm install again

    Continue reading...

Compartilhe esta Página