Skip to content

Missing node-gyp on sub modules #478

@chambo-e

Description

@chambo-e

Description

Hello 👋

When we try to install a sub package with yarn (not tested with npm) we have an error indicating that node-gyp is missing.

If I understand correctly it's in the dependencies of @stdlib/stdlib but not in the subpackages

A workaround might be to use @stdlib/stdlib to access subpackages but that is quite heavy to only use some functions

Related Issues

Related issues # , # , and # .

Questions

No response

Demo

No response

Reproduction

In a clean project (without node-gyp in PATH)

- yarn add @stdlib/math-base-special-ldexp

Expected Results

No response

Actual Results

Usage Error: Couldn't find a script name "node-gyp" in the top-level (used by @stdlib/math-base-special-abs@npm:0.0.5). This typically happens because some package depends on "node-gyp" to build itself, but didn't list it in their dependencies. To fix that, please run "yarn add node-gyp" into your top-level workspace. You also can open an issue on the repository of the specified package to suggest them to use an optional peer dependency.

Version

No response

Environments

Node.js

Browser Version

No response

Node.js / npm Version

17

Platform

MacOS/Linux

Checklist

  • Read and understood the Code of Conduct.
  • Searched for existing issues and pull requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions