Azure functions throwing error when trying to debug on MacOS

Viewed 4332

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 ?

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

Related