Maison > interface Web > js tutoriel > Correctif pour EPERM : opération non autorisée ($types.d.ts)

Correctif pour EPERM : opération non autorisée ($types.d.ts)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Libérer: 2024-09-01 21:09:02
original
876 Les gens l'ont consulté

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'
Copier après la connexion

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
Copier après la connexion
  1. Run CMD as admin and enter this:
npm config edit
Copier après la connexion

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
Copier après la connexion

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!

Ce qui précède est le contenu détaillé de. pour plus d'informations, suivez d'autres articles connexes sur le site Web de PHP en chinois!

Déclaration de ce site Web
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn
Tutoriels populaires
Plus>
Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal