Skip to content

First-time installation fails on Windows due to registry key lookup error #4757

@eakuefner

Description

@eakuefner

pnpm version: 7.1.1

Code to reproduce the issue: iwr https://get.pnpm.io/install.ps1 -useb | iex

Expected behavior: pnpm is installed for the current user

Actual behavior: Fails with error

Downloading '@pnpm/win-x64' from 'npmjs.com' registry...

Extracting downloaded '7.1.1' archive...

Running setup...

C:\Users\eakuefner\AppData\Local\Temp\tmpF3B0.tmp.extracted\package\pnpm.exe
Copying pnpm CLI from C:\Users\eakuefner\AppData\Local\Temp\tmpF3B0.tmp.extracted\package\pnpm.exe to C:\Users\eakuefner\AppData\Local\pnpm\pnpm.exe
 ERROR  Command failed with exit code 1: C:\Windows\system32\reg.EXE query HKEY_CURRENT_USER\Environment /v PNPM_HOME
ERROR: The system was unable to find the specified registry key or value.

Additional information:

  • node -v prints: This is a totally fresh setup without node.
  • Windows, macOS, or Linux?: Windows

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions