-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
Closed
Labels
npmIssues and PRs related to the npm client dependency or the npm registry.Issues and PRs related to the npm client dependency or the npm registry.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
I'm getting the following error when trying to run a simple npx command on Windows. I opened the issue to this repository because we are distributing npm
, we define the location of npm
in a Windows machine.
I reinstalled Node.js from nodejs.org
with the latest v22, and I can not use npm
at all. Any input/help is appreciated.
PS: I'm using PowerShell.
PS C:\Users\yagiz\Desktop\coding\node> npx node-benchmark-compare .\bench.txt
npm error code ENOENT
npm error syscall lstat
npm error path C:\Users\yagiz\AppData\Roaming\npm
npm error errno -4058
npm error enoent ENOENT: no such file or directory, lstat 'C:\Users\yagiz\AppData\Roaming\npm'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: C:\Users\yagiz\AppData\Local\npm-cache\_logs\2024-06-21T20_29_57_155Z-debug-0.log
cc @nodejs/platform-windows
electrovir
Metadata
Metadata
Assignees
Labels
npmIssues and PRs related to the npm client dependency or the npm registry.Issues and PRs related to the npm client dependency or the npm registry.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.