You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried npm installing tree-sitter and a grammar. Ran my extension and it says there is some NODE_MODULE_VERSION mismatch. Looked into the issue and apparently I need to configure tree-sitter for electron.
So I npm install electron and electron-rebuild, get rid of my node_modules folder and package-lock.json file, run npm install and then .\node_modules\.bin\electron-rebuild.cmd as instructed on the electron docs.
I now get a new error:
✖ Rebuild Failed
An unhandled error occurred inside electron-rebuild
node-gyp failed to rebuild 'path_to_project\node_modules\tree-sitter'.
I am tired of running in circles on forums and blog posts, can someone please help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I tried npm installing tree-sitter and a grammar. Ran my extension and it says there is some NODE_MODULE_VERSION mismatch. Looked into the issue and apparently I need to configure tree-sitter for electron.
So I
npm install electron
andelectron-rebuild
, get rid of mynode_modules
folder andpackage-lock.jso
n file, runnpm install
and then.\node_modules\.bin\electron-rebuild.cmd
as instructed on the electron docs.I now get a new error:
I am tired of running in circles on forums and blog posts, can someone please help.
Beta Was this translation helpful? Give feedback.
All reactions