unable to create file … Permission denied May 11, 2023 by Tarik In my case, my angular app was still running from ng serve, giving this: So I just had to close it with ctrl+c.