Unable to do Firebase deploy - Error: Invalid Firebase specified
<p>After accomplishing all the necessary steps on <a href="https://www.firebase.com/docs/hosting/guide/deploying.html" rel="noreferrer">firebase.com/docs</a> and upgrading my app to newer version I still can't run the deploy it using <code>firebase-tools</code>.</p>

<p><strong>$ firebase deploy MY_APP_NAME</strong></p>

<p>Gives following stack:</p>

<pre><code>/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:53
                throw err;
                ^

Error: EACCES: permission denied, open '/Users/myusername/.config/configstore/update-notifier-firebase-tools.json'
You don't have access to this file.

at Error (native)
at Object.fs.openSync (fs.js:634:18)
at Object.fs.readFileSync (fs.js:502:33)
at Object.create.all.get (/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:34:26)
at Object.Configstore (/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:27:44)
at new UpdateNotifier (/usr/local/lib/node_modules/firebase-tools/node_modules/update-notifier/index.js:34:17)
at module.exports (/usr/local/lib/node_modules/firebase-tools/node_modules/update-notifier/index.js:123:23)
at Object.&lt;anonymous&gt; (/usr/local/lib/node_modules/firebase-tools/bin/firebase:5:48)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
</code></pre>

<p>Reading this <a href="https://stackoverflow.com/questions/25668744/cant-deploy-to-firebase-get-enoent-error">Can&#39;t deploy to firebase . Get ENOENT error</a> I've tried to apply sudo, that helped a bit more - and following: <strong>$ sudo firebase deploy</strong></p>

<p>after a noticeable pause of 3-5 seconds results in </p>

<pre><code>Error: Invalid Firebase specified.

Having trouble? Try firebase deploy --help
</code></pre>

<p>However doing: <strong>$ sudo firebase list</strong></p>

<p>shows that the project exists:</p>

<pre><code>┌────────────────────────┬───────────────────────┬─────────────┐
│ Name                   │ Project ID / Instance │ Permissions │
├────────────────────────┼───────────────────────┼─────────────┤
│ MY_APP_NAME (current)  │ MY_APP_NAME           │ Owner
</code></pre>

<p>Any ideas will be appreciated. </p>

<p>I have NPM 3.8.6 @ Node v6.0.0 @ Mac 10.11</p>