Trying to get started using Firebase functions and have hit a a problem where I can't edit the file that contains the functions code: /functions/index.js
My environment is a Codeanywhere container. I am running these versions of node and NPM:
cabox@box-codeanywhere:~$ node -v
v10.10.0
cabox@box-codeanywhere:~$ npm -v
6.4.1
I took followed these steps after updating NPM:
sudo npm install -g firebase-tools
sudo firebase login --no-localhost
- (logged in with my G-Suite account associated with Firebase instance)
sudo firebase init
I have followed these answer from this question to ensure my Google account has the correct permissions: Permission denied in firebase cloud functions. And still no joy.
Unsure whether this is a Codeanywhere peculiarity or common Firebase issue.