Web App Deployment fails due to NPM
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Starting in October 2022, about 80% of all runs fail with the following exception:
npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! npm ERR! previous versions of npm which has since been addressed.
npm ERR! npm ERR!
npm ERR! npm ERR! To permanently fix this problem, please run:
npm ERR! npm ERR! sudo chown -R 1001:123 "/github/home/.npm"
**To Reproduce**
Steps to reproduce the behavior:
1. Create an Action that uses Azure/static-web-apps-deploy@v1
2. run that action.
3. Observe exception
The actions fail about 18 out of 20 times, but if I retry enough times it will eventually pass.
**Expected behavior**
I expect the deployment to succeed, and not to fail. I have tried using different versions of Node, but it does not appear to have any effect.
**Screenshots**

**Device info (if applicable):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.