Skip to content

Binaries are not set globally when using directories.bin #978

Description

@felipecrs

Binaries can also be set using directories.bin and not only bin. bats is an example of it.

https://docs.npmjs.com/cli/v7/configuring-npm/package-json#directoriesbin

To reproduce:

volta --version
1.0.4npm --version
7.11.1npm install --global bats

added 1 package, and audited 2 packages in 2s

found 0 vulnerabilitieswhich bats
bats not founddocker run --rm -it node:14 bash -xc 'npm install --global bats && bats --version'
+ npm install --global bats
/usr/local/bin/bats -> /usr/local/lib/node_modules/bats/bin/bats
+ bats@1.3.0
added 1 package from 1 contributor in 0.353s
+ bats --version
Bats 1.3.0

The above works fine when not using volta.

References bats-core/bats-core#430.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions