Skip to content

Global npm module npmrc garbles pnpm output on stdin with warning #5682

@davidaurelio

Description

@davidaurelio

pnpm version:

7.17.0

Code to reproduce the issue:

npm -g i pnpm npmrc
pnpm list --json # in any package

Expected behavior:

Only JSON on stdout.

Actual behavior:

The following warning appears on stdout, before any JSON output:

 WARN  Issue while reading "~/Library/Application Support/fnm/node-versions/v16.14.2/installation/lib/node_modules/npmrc". EISDIR: illegal operation on a directory, read

Additional information:

There seem to be multiple issues in combination here, and I don’t know what you would consider the best fix:

This is happening in an environment at my company where I have no control whether the callers of my script (which uses pnpm) have npmrc installed as a global package. Many of them have, because a different project (close to mine) installs it in its setup script.

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