forcedotcom / lwc-dev-server-feedback

LWC Local Development
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

lwc-dev-server node-gyp not found error #144

Open samiljimari opened 1 year ago

samiljimari commented 1 year ago

Describe the bug I am trying to install the lwc server plugin and whatever I do I always get the same error. Tried to install node-gyp separately, re-install npm, add node-gyp and npm to user and system path in environment variables, download new JAVA JDE and JRE and re-referencing them in the VS code settings

I'm running the commands from VS Code powershell

To Reproduce sfdx plugins:install @salesforce/lwc-dev-server

Expected behavior Exit code: 1 Command: node build.js || nodejs build.js Arguments: Directory: C:\Users\username\AppData\Local\sfdx\node_modules\fibers Output: node-gyp not found! Please ensure node-gyp is in your PATH-- Try running: sudo npm install -g node-gyp 'nodejs' is not recognized as an internal or external command, operable program or batch file. spawn node-gyp.cmd ENOENT Installing plugin @salesforce/lwc-dev-server... failed Error: yarn add @salesforce/lwc-dev-server@latest --non-interactive --mutex=file:C:\Users\username\AppData\Local\sfdx\yarn.lock --preferred-cache-folder=C:\Users\username\AppData\Local\sfdx\yarn --check-files exited with code 1

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

stale[bot] commented 1 year ago

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.