Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure functions throwing error when trying to debug on MacOS

Trying to debug an Azure functions project. On the mac clicking F5 and starting the debug.

And the output is this :

[2021-07-25T08:47:57.429Z] Cannot create directory for shared memory usage: /dev/shm/AzureFunctions
[2021-07-25T08:47:57.434Z] System.IO.FileSystem: Access to the path '/dev/shm/AzureFunctions' is denied. Operation not permitted.
Value cannot be null. (Parameter 'provider')

Has anybody encountered this before and know how to fix this ? I tried running visual studio code with administrator permissions like this : sudo open ./Visual\ Studio\ Code.app

Also tried to mkdir the /dev/shm directory but it just keeps giving this error. What should I do ?

like image 432
Wahalez Avatar asked Sep 11 '25 12:09

Wahalez


1 Answers

Solution was adding --verbose mode and see the logs. The problem was that azure didn't support node version 15. Downgraded nodejs to version 13.12.0 and it worked.

like image 63
Wahalez Avatar answered Sep 13 '25 07:09

Wahalez