Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sadashivm opened this issue Apr 28, 2022 · 5 comments
Closed

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

sadashivm opened this issue Apr 28, 2022 · 5 comments

Comments

@sadashivm
Copy link

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

@yxw007
Copy link

yxw007 commented Apr 28, 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

@sadashivm
Copy link
Author

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

@yxw007
Copy link

yxw007 commented Apr 29, 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

@sadashivm
Copy link
Author

sadashivm commented May 1, 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?

@yxw007
Copy link

yxw007 commented May 6, 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

@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants