nodejs / nodejs/nan

can this node-gyp warning be dealt with?

Open
#962 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
3.4k
Forks
531
Avg merge
21m
Merged PRs (30d)
1

Description

I am using node 18.18.2 and yarn 3.2.4.

If I do:

  1. mkdir test
  2. cd test
  3. yarn init
  4. yarn add nan

I get the warning:

➤ YN0032: │ nan@npm:2.18.0: Implicit dependencies on node-gyp are discouraged

I aim for zero-warnings because unimportant warnings make it hard to notice important warnings.

Can this warning be dealt with?

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

Reproduce the warning with Node 18.18.2 and Yarn 3.2.4 using the mkdir, yarn init, and yarn add nan steps from the report. Inspect the package metadata and dependency handling involved in that installation; done means the nan install no longer emits the implicit node-gyp warning without introducing a replacement warning.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.