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
WBOYOriginal
2024-09-01 21:09:02799browse

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'

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
  1. Run CMD as admin and enter this:
npm config edit

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

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!

Statement:
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