forcedotcom/lwc-dev-server-feedback

lwc-dev-server node-gyp not found error

Opened this issue · 1 comments

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):

  • OS: Windows 10
  • IDE: VS Code
stale commented

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