Home > Web Front-end > JS Tutorial > Fix for EPERM: operation not permitted (...$types.d.ts)

Fix for EPERM: operation not permitted (...$types.d.ts)

WBOY
Release: 2024-09-01 21:09:02
Original
796 people have browsed it

I had an issue running my sveltekit dev server. I kept getting this issue:

EPERM: operation not permitted, stat 'C:\Users\user\Documents\Github\SvelteKit\Goremote Africa\main\.svelte-kit\types\src\routes\$types.d.ts'
Copy after login

Fix for EPERM: operation not permitted (...$types.d.ts)

Here's how to solve it:

  1. This didn't solve anything, but you might want to clear your npm cache first:
npm cache clean --force
Copy after login
  1. Run CMD as admin and enter this:
npm config edit
Copy after login

Fix for EPERM: operation not permitted (...$types.d.ts)

It will open a notepad window/tab.

Fix for EPERM: operation not permitted (...$types.d.ts)

  1. Set prefix variable to C:\Users\user\AppData\Roaming\npm. Remember to change user to your username:

Fix for EPERM: operation not permitted (...$types.d.ts)

prefix=C:\Users\user\AppData\Roaming\npm
Copy after login

Save and close the notepad window and run your development server. It should work now:

Fix for EPERM: operation not permitted (...$types.d.ts)

Happy Hacking!

The above is the detailed content of Fix for EPERM: operation not permitted (...$types.d.ts). For more information, please follow other related articles on the PHP Chinese website!

source:dev.to
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template