nodejs / nodejs/node-gyp

Error while Installing SFDX lwc-server

Open
#2,342 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
10.7k
Forks
1.9k
Avg merge
1d 4h
Merged PRs (30d)
5

Description

Hi, I am trying to install the SFDX local dev server but the plugin is throwing the below error. I already install the gpy but, the error still continues. Below is the Error !!

error /Users/rahulyadav/.local/share/sfdx/node_modules/fibers: Command failed.
Exit code: 127
Command: node build.js || nodejs build.js
Arguments:
Directory: /Users/rahulyadav/.local/share/sfdx/node_modules/fibers
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@14.16.0 | darwin | x64
gyp info find Python using Python version 3.8.8 found at "/usr/local/bin/python3"
gyp http GET https://nodejs.org/download/release/v14.16.0/node-v14.16.0-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: ENOENT: no such file or directory, open '/Users/rahulyadav/‎⁨Macintosh'
gyp ERR! stack at Object.openSync (fs.js:476:3)
gyp ERR! stack at Object.readFileSync (fs.js:377:35)
gyp ERR! stack at readCAFile (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:434:15)
gyp ERR! stack at download (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:409:22)
gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:162:19
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:171:23)
gyp ERR! System Darwin 18.7.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /Users/rahulyadav/.local/share/sfdx/node_modules/fibers
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok
node-gyp exited with code: 1
Please make sure you are using a supported platform and node version. If you
would like to compile fibers on this machine please make sure you have setup your
build environment--
Windows + OS X instructions here: https://github.com/nodejs/node-gyp
Ubuntu users please run: sudo apt-get install g++ build-essential
RHEL users please run: yum install gcc-c++ and yum groupinstall 'Development Tools'
Alpine users please run: sudo apk add python make g++
/bin/sh: nodejs: command not found
Installing plugin @salesforce/lwc-dev-server... failed
Error: yarn add @salesforce/lwc-dev-server@latest --non-interactive --mutex=file:/Users/rahulyadav/.local/share/sfdx/yarn.lock
--preferred-cache-folder=/Users/rahulyadav/Library/Caches/sfdx/yarn --check-files exited with code 127

Pls help me find the solution ??

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported node_modules/fibers/build.js failure and the node-gyp 7.1.2 output, including the Node.js v14.16.0 and Python 3.8.8 environment details. Reproduce the installation command for @salesforce/lwc-dev-server and identify the environment or dependency condition causing the exit code 127; done means the plugin installs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, python
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.