Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

922
Views
npm install -g @sanity/cli npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path C:\Program Files\Git\usr\local npm ERR! errno -4048
npm ERR! code EPERM
npm ERR! syscall mkdir
npm ERR! path C:\Program Files\Git\usr\local
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Git\usr\local'
npm ERR!  [Error: EPERM: operation not permitted, mkdir 'C:\Program Files\Git\usr\local'] {
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: 'C:\\Program Files\\Git\\usr\\local'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Razor\AppData\Local\npm-cache\_logs\2022-05-02T11_23_07_449Z-debug.log

1

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This line looks very odd: npm ERR! path C:\Program Files\Git\usr\local.

Did you perhaps run npm config set prefix /usr/local at some point? It looks like npm is failing on the mkdir command and that this is more of a permissions or configuration issue than a Sanity/Javascript/Express one.

You could try following the instructions of this answer or—if that doesn't work—the cache clean comment here.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!