admin管理员组

文章数量:1134037

I'm setting up a new Vue 3 project, but when I run 'npm run dev', the URL after 'vite --host' doesn't appear. There were also issues during the npm installation. How should I resolve this?

Below are the terminal outputs that appeared during the installation.

PS C:\noneWork\vue3_test> npm run dev

> [email protected] dev
> vite --host

PS C:\noneWork\vue3_test> npm i                   
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\noneWork\\vue3_test\\node_modules\\@vue\\compiler-sfc',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\noneWork\vue3_test\node_modules\@vue\compiler-sfc\node_modules'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\noneWork\\vue3_test\\node_modules\\@vue\\compiler-sfc\\node_modules'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code ERR_INVALID_ARG_TYPE
npm error The "file" argument must be of type string. Received undefined
npm error A complete log of this run can be found in: C:\Users\SEEDS\AppData\Local\npm-cache\_logs\2025-01-08T01_37_41_845Z-debug-0.log
PS C:\noneWork\vue3_test> node -v
v22.13.0
PS C:\noneWork\vue3_test> npm -v
11.0.0

本文标签: nodejsnot working dev for vite and npm install errorStack Overflow