Skip to content

pnpm link --global for a dependency with a bin prints unexpected warning #4761

@runspired

Description

@runspired

pnpm version 7.1.1

Take a project with a simple file at bin/command.mjs

#!/usr/bin/env node

console.log("hello world");

Configure it via the bin field of that project's package.json file.

  "bin": { "myCommand": "./bin/command.mjs" }

Install this local project globally.

pnpm link --global

Unexpected output:

 WARN  undefined has no binaries

The associated bin file is available as expected despite this warning.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions