In this function I want to make calls to github to retrieve a repo and store it on the /tmp/ folder.
I then want to run npm install inside that directory but it throws an error such as command not found.
This is also true when trying to execute netlify commands such as netlify help. I can run ls and cd .. but i need to be able to run the npm cli, git cli and expo cli all within a deployed netlify function using javascript.
You need to install npm inside your Netlify Function for that to work as I don’t believe it’s available by default. You also say you need Git, Expo, etc. However, I don’t think it’s practical. The installation alone (even if it was possible) would go over the 10 sec limit of the function.