nodejs / nodejs/node-gyp

The `--jobs` option doesn't work from `.npmrc`

Open
#2,699 0 comments 0 reactions 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

Similar to #2698.

  1. If you use npm_config_jobs=max node-gyp build --verbose, the gyp.opts has jobs.
  2. If you use npm config set jobs max --location project && node-gyp build --verbose, the gyp.opts does not have jobs.

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 by reproducing the two commands in the issue and compare the resulting gyp.opts output. Trace how the environment variable and project-level npm configuration reach node-gyp, then verify that the .npmrc form also produces a gyp.opts entry for jobs.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, python
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.