Created
January 17, 2019 15:58
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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