ni icon indicating copy to clipboard operation
ni copied to clipboard

EPERM: operation not permitted

Open ianzone opened this issue 1 year ago • 1 comments

Describe the bug

yihen@think MINGW64 ~
$ ni -g typescript
Already up to date
Progress: resolved 38, reused 38, downloaded 0, added 0, done
 EPERM  EPERM: operation not permitted, open 'C:\Users\yihen\AppData\Local\pnpm\ni'

and the file 'C:\Users\yihen\AppData\Local\pnpm\ni' is removed after execution

Reproduction

using git bash windows to install global packages like above

System Info

System:
    OS: Windows 11 10.0.22621
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13800H
    Memory: 18.51 GB / 31.66 GB
  Binaries:
    Node: 20.10.0 - ~\AppData\Local\pnpm\node.EXE
    npm: 10.2.3 - ~\AppData\Local\pnpm\npm.CMD
    pnpm: 8.11.0 - ~\AppData\Local\pnpm\pnpm.EXE
  Browsers:
    Edge: Chromium (119.0.2151.97)
    Internet Explorer: 11.0.22621.1

Used Package Manager

pnpm

Validations

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

ianzone avatar Dec 06 '23 16:12 ianzone

Maybe you should run your command in a elevated PowerSheel or Command Prompt. I rarely use MINGW64 : )

HawtinZeng avatar Dec 12 '23 15:12 HawtinZeng