Skip to content

Instantly share code, notes, and snippets.

@ezirmusitua
Created January 17, 2019 15:58
Show Gist options
  • Save ezirmusitua/b0e83e205a92ea31de8ddc9c774d7854 to your computer and use it in GitHub Desktop.
Save ezirmusitua/b0e83e205a92ea31de8ddc9c774d7854 to your computer and use it in GitHub Desktop.
[Fix NODE_MODULE_VERSION] fix NODE_MODULE_VERSION in electron #electron #node
# This error is cause by node_module node version not matched
# generally, it happend when you switch node version(with nvm & conda) but did not re-install dependencies
# in some case, it was cause by the electron node version is not compatiable with local node
## 1. install electron-rebuild
yarn add electron-rebuild --dev
## 2. remove node_modules
sudo rm -rf node_modules
## 3. re-install
yarn
## 4. rebuild
./node_modules/.bin/electron-rebuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment