'Error: EPERM: operation not permitted, rename file.json using json serve multiple http.post

I'm using json server and I want to do multiples http.post in my file.json, but when I do that I have an erro like this:

enter image description here

I'm using angular, MyArray.Foreach(x => _service.post(x)).subscribe();

post(metadado: Metadado): Observable<Metadado> {
    return this.http.post<Metadado>(this.baseUrl, metadado)
  }

I expected to do multiples http.post in my fakeJson in json serve.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source