-
Notifications
You must be signed in to change notification settings - Fork 46
[vite] error while updating dependencies - Access is denied #207
Comments
I found something... maybe it helps why is happening but not the resolution of the case. |
Can you clean up the |
Deleted
After the error there is a hot reload and the app run ok. I stopped node, then run again
In this case 5 errors about Access denied, if I stop and close everything and start again, 2 errors about Access denied... It seems to be random when the app up right. |
this only happen in 0.3.4 version . 0.2.4 dont have it. |
Let me check downgrading the version and post the results. @hotrungnhan |
same problem |
same problem in vite but not use nuxt. [vite] error while updating dependencies: |
same problem error: Failed to write to output file: open node_modules.vite\ant-design-vue.js: Access is denied. |
same problem [vite] error while updating dependencies: |
Yeah, the same error(just vite ,no nuxt). Yesterday when i run dev, it just break down suddenly. > error: Failed to write to output file: open D:\projects\walnut\walnut-admin\walnut-admin-client\node_modules\.vite\naive-ui.js: Access is denied. |
Same problem when I using node version 14.15.0, but I switch node to version 16.13.0 this problem did not show up. I delete the 'node_modules/.vite' folder and switch node back to version 14.15.0, this problem show up again. |
Oh, thank u. Node 16.13.0 is ok. |
Thank you! Node 16.13.0 works. I used Node 14.15.3 before. |
卸载node 重新安装 |
I found the problem in the last row. The reason was that regular expressions were used, as follows:
When I extracted the regularity, it passed the compilation smoothly, as follows:
I don’t know why this happens, can anyone help me answer it? |
Thanks! Use Node.js version 16.13.2 is ok. |
The same problem, but only when switching between dev and prod(dev to prod) .But my solution is different from yours, and I hope it helps. |
我使用nvm, 将我的node从14升级到了16, 问题解决 |
Problem solved here, just upgrading Node from 14.15 to v14.19.0 |
Problem still occurring with node v16.
|
Node 16.16.0 works. I used Node v16.15.1 before. |
Same problem, but i used npm and yarn on project initial, remove package-lock.json, and every ok |
Same problem happened with me after deleting node_module , yarn.lock and run |
Same problem here, I'm using Node 19.0.0, vite 3.1.8, Storybook 7. The error appears when I try to run Storybook. If I run my git bash with admin permissions - the issue disappears, but I would like to not elevate permissions every time |
|
@barusla I don't use nx, just calling it via pnpm |
Problem solved. Thanks. |
In my case was because I didn't install node, and when I installed it I had to reboot my pc because consoles (cmd, cmder, powershell) wasn't recognition that node was already installed. |
nuxt-vite: 0.2.4
nuxt: 2.15.8
Reproduction
npm run dev
sometimes throw and error while compiling in dev mode.Description
I need to close the browser window and run again
npm run dev
and sometimes the application runs ok throwing some errors like:The text was updated successfully, but these errors were encountered: