Skip to content

Does not use globally installed node-gyp #1016

Description

@jeffrson

Describe the bug

I'm trying to install "argon2" (yarn add argon2) with node 13.9.0 - there's no prebuilt binary yet, so it needs to be built.

First there is a YN0032 warning - I've read https://yarnpkg.com/advanced/error-codes#yn0032---node_gyp_injected and I could fix the issue by yarn add node-gyp. I thought about reporting a bug against argon2 - such that the should need to declare a peerDependency or dependency.

However, I was wondering why yarn does not use the node-gyp version I had installed previously by npm i -g node-gyp.

Should it use an existing node-gyp (like yarn1 does)?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions