While attempting to upload my website with Webpack to Vercel from the repository, I encountered an error during the build process:
Skipping build cache, deployment triggered without cache.
Cloning completed: 2.089s
Running "vercel build"
Vercel CLI 31.2.3
Installing dependencies...
up to date in 293ms
15 packages are looking for funding
run `npm fund` for details
Detected “package-lock.json” generated by npm 7+...
Running "npm run build"
sh: /vercel/path0/node_modules/.bin/webpack: Permission denied
Error: Command “npm run build” exited with 126
When I type “npm run build” in VS Code terminal everything works fine. I attempted deleting the node_modules folder and reinstalling webpack but unfortunately, it didn't resolve the issue. T_T