Skip to content

PNPM global install command will not function properly #8743

Description

@Devitzer

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

I'm trying to globally install pm2, but it will not work. I'm getting an error that "The configured global bin directory "C:\Users\noahy\AppData\Local\pnpm" is not in PATH", even though it very clearly is right here:

{07D7D0CC-5853-4355-B737-F45F1D23BF36}

In the photo, you can see my PNPM_HOME variable and the exact same path that the error is saying is NOT in the path.

All I did was run npm install -g pnpm and then pnpm setup and this is where I am currently

Describe the Bug

The bug is that I am trying to install a global package and it won't let me due to an error that I can't really diagnose as it's basically wrong.

Expected Behavior

I expected the package to install globally to my system so I could use it.
I used a new terminal and even restarted my computer after running pnpm setup but it still did not work.

Which Node.js version are you using?

22.11.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

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