Skip to content

[DOCS] Is prefix a good example parameter to explain npmrc? #7188

@kh31d4r

Description

@kh31d4r

Is there an existing issue for this?

  • I have searched the existing issues

This is a CLI Docs Enhancement, not another kind of Docs Enhancement.

  • This is a CLI Docs Enhancement.

Description of Problem

In the "Files" section, prefix is used as an example of parameter that can be set in the for places mentioned above.

However, trying to set the prefix parameter in the per-project (/path/to/my/project/.npmrc) config file will result in an error from the cli, and will be ignored.

Potential Solution

The cli seems to have an explicit check for the exact combination of per-project config and this particular parameter, so picking a different parameter that doesn't have this kind of restriction would be the easiest.

Docs URL

https://docs.npmjs.com/cli/v10/configuring-npm/npmrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Documentationdocumentation related issuePriority 2secondary priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions