Unable to the run vue app with vite version 2.9.0 and above
Version
3.2.33
Reproduction link
Steps to reproduce
- install npm packages
- run below command, npm run dev
What is expected?
App should work
What is actually happening?
Getting an bellow error,
12:58:28 pm [vite] error while updating dependencies: Error: EPERM: operation not permitted, rename 'D:/Vue/vue3-latest/node_modules/.vite/processing' -> 'D:/Vue/vue3-latest/node_modules/.vite/deps' at Object.renameSync (node:fs:980:3) at commitProcessingDepsCacheSync (D:\Vue\vue3-latest\node_modules\vite\dist\node\chunks\dep-8db0e223.js:37269:21) at Object.commit (D:\Vue\vue3-latest\node_modules\vite\dist\node\chunks\dep-8db0e223.js:37261:13) at commitProcessing (D:\Vue\vue3-latest\node_modules\vite\dist\node\chunks\dep-8db0e223.js:58587:34) at runOptimizer (D:\Vue\vue3-latest\node_modules\vite\dist\node\chunks\dep-8db0e223.js:58625:17) at processTicksAndRejections (node:internal/process/task_queues:96:5)
Please check the issue in above link (vue3-latest).
I tried all the vite versions from 2.9.0 to 2.9.6, it's thorwing an error. But build is happen successfully (npm run build).
Finally I downgraded the vite version to ("vite": "2.8.6"), the app is working properly,
I'm getting below error when vite version 2.9.0 and above,
After downgrading vite version to 2.8.6,
It's working fine. I think it's your environment. Suggestion: Delete node_modules and package-lock.json and try NPM install again. If you still can't provide your node version, please refer to vite project issues. My node version v16.14.2
Hello @yxw007 Here is the node version detail,
node version - v16.14.2 npm - 8.7.0
I aslo tried removing the node_modules folder and package-lock.json file. Still I'm getting the same issue
Hello @yxw007 Here is the node version detail,
node version - v16.14.2 npm - 8.7.0
I aslo tried removing the node_modules folder and package-lock.json file. Still I'm getting the same issue
Error: EPERM: operation not permitted, Follow this tip to check your project directory permissions
It's working fine. I think it's your environment. Suggestion: Delete node_modules and package-lock.json and try NPM install again. If you still can't provide your node version, please refer to vite project issues. My node version v16.14.2
If I turn off antivirus (k7 Ultimate security antivirus) then it is working fine. and if antivirus is active, then I'm getting an error. Can you confirm, what about you. Does your system have antivirus disable/enable?
It's working fine. I think it's your environment. Suggestion: Delete node_modules and package-lock.json and try NPM install again. If you still can't provide your node version, please refer to vite project issues. My node version v16.14.2
If I turn off antivirus (k7 Ultimate security antivirus) then it is working fine. and if antivirus is active, then I'm getting an error. Can you confirm, what about you. Does your system have antivirus disable/enable?
Haha, I don't even install antivirus software