Following the firebase function getting started guide and getting a seemingly simple error once trying to deploy with:
firebase deploy --only functions i d
You have to change firebase.json file as shown in here
firebase.json
"npm --prefix functions run lint" "npm --prefix functions run build"