Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
eakuefner opened this issue May 18, 2022 · 3 comments · Fixed by #4760
Closed

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

eakuefner opened this issue May 18, 2022 · 3 comments · Fixed by #4760

Comments

@eakuefner
Copy link

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
@IAALAI
Copy link

IAALAI commented May 18, 2022

Do you have enough permissions?

@IAALAI
Copy link

IAALAI commented May 18, 2022

I also had this problem at first and then adopted Corepack.

@zkochan zkochan self-assigned this May 18, 2022
@zkochan
Copy link
Member

zkochan commented May 18, 2022

It is a regression caused by #4731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants