Subscribe on changes!

Unable to the run vue app with vite version 2.9.0 and above

avatar
Apr 28th 2022

Version

3.2.33

Reproduction link

github.com

Steps to reproduce

  1. install npm packages
  2. 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, image

After downgrading vite version to 2.8.6,

image

avatar
Apr 28th 2022

image 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

avatar
Apr 29th 2022

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

avatar
Apr 29th 2022

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

avatar
May 1st 2022

image 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?

avatar
May 6th 2022

image 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