完成firebase.com/docs上的所有必要步骤并将我的应用程序升级到较新版本后,我仍然无法使用firebase-tools
.
$ firebase 部署 MY_APP_NAME
给出以下堆栈:
/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.<anonymous> (/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)
阅读此Can't deploy to firebase 。得到 ENOENT 错误我尝试应用 sudo,这有助于更多 - 并遵循:$ sudo firebase deploy
在 3-5 秒的明显停顿后导致
Error: Invalid Firebase specified.
Having trouble? Try firebase deploy --help
但是这样做:$ sudo firebase list
表明该项目存在:
┌────────────────────────┬───────────────────────┬─────────────┐
│ Name │ Project ID / Instance │ Permissions │
├────────────────────────┼───────────────────────┼─────────────┤
│ MY_APP_NAME (current) │ MY_APP_NAME │ Owner
任何想法将不胜感激。
我有 NPM 3.8.6 @ Node v6.0.0 @ Mac 10.11