Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Error during npm install cannot resolve module 'electron' in ~/browser-laptop/js #1098

Closed
erikvold opened this issue Mar 17, 2016 · 3 comments

Comments

@erikvold
Copy link

I'm getting this error when I try npm install:

    WARNING in ./js/commonMenu.js
    Module not found: Error: Cannot resolve module 'electron' in ./browser-laptop/js
     @ ./js/commonMenu.js 24:13-32

    ERROR in ./js/stores/windowStore.js
    Module not found: Error: Cannot resolve module 'electron' in ./browser-laptop/js/stores
     @ ./js/stores/windowStore.js 522:15-34
@erikvold
Copy link
Author

I get the same error when trying npm run watch

@bbondy
Copy link
Member

bbondy commented Mar 17, 2016

Please try doing:

rm -Rf node_modules
rm -Rf ~/.electron
npm install

I think it will fix, closing but I'll re-open if that doesn't fix.

@bbondy bbondy closed this as completed Mar 17, 2016
@erikvold
Copy link
Author

thanks things seem to work now :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants