Azure / static-web-apps

Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
https://aka.ms/swa
MIT License
319 stars 53 forks source link

Azure Oryx Deployment #1350

Open bhavya250198 opened 7 months ago

bhavya250198 commented 7 months ago

Hi All, I am facing an issue while deploying my content to azure static web app . The Oryx is doing npm install --unsafe-perm and after that it is returing this error "/tmp/BuildScriptGenerator/446d2d0f7345480d89125b19c71e67eb/build.sh: line 362: 156 Killed npm install --unsafe-perm" . Kindly suggest me how to resolve this issue. image

ElliotGibson commented 3 months ago

@bhavya250198 is there any particular reason you're using the --unsafe-perm cli argument? - I believe Oryx shoud run as root by default, so if its to run package scripts then it should work without this