Azure / Azure/static-web-apps

Web App Deployment fails due to NPM

Open
#1,164 1 comment 0 reactions 0 assignees View on GitHub
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**
![image](https://github.com/Azure/static-web-apps/assets/48846485/44782bba-157a-497a-b101-74071d421184)

**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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.