无法执行Firebase部署 - 错误:指定的Firebase无效 [英] Unable to do Firebase deploy - Error: Invalid Firebase specified
问题描述
完成 firebase.com/docs并将我的应用程序升级到更新的版本我仍然无法使用 firebase-tools
运行部署。
$ firebase部署MY_APP_NAME
给出以下堆栈:
/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:53
throw err;
^
错误:EACCES:权限被拒绝,打开'/Users/myusername/.config/configstore/update-notifier-firebase-tools.json'
您不有权访问此文件。错误(原生)
在Object.fs.openSync(fs.js:634:18)
在Object.fs.readFileSync(fs.js:502:33 )
在Object.create.all.get(/usr/local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:34:26)
在Object.Configstore(/ usr /local/lib/node_modules/firebase-tools/node_modules/configstore/index.js:27:44)在新的UpdateNotifier中,
(/ usr / local / lib / node_modules / firebase-tools / node_modules / update-notifier / index.js:34:17)
在module.exports(/usr/local/lib/node_modules/firebase-tools/node_modules/update-notifier/index.js:123:23)
在Object <匿名> (module.js:541:32)
(Object.Module._extensions中的
)(/ usr / local / lib / node_modules / firebase-tools / bin / firebase: .js(module.js:550:10)
阅读不能部署到firebase。获取ENOENT错误我尝试了应用sudo,这有助于了解更多 - 以下内容: $ sudo firebase deploy
3-5秒的明显停顿导致
错误:指定的Firebase无效。
有麻烦吗?尝试firebase部署--help
但是这样做: $ sudo firebase list
显示该项目存在:
┌───── ───────────────────┬───────────────────────┬────── ───────┐
│名称│项目编号/实例│权限│
├──────────────────────── ─┼──────────────────────────────────────
│MY_APP_NAME(当前)│ MY_APP_NAME│所有者
任何想法将不胜感激。
我有NPM 3.8.6 @ Node v6.0.0 @ Mac 10.11
然后,部署命令是
firebase deploy --project MY_PROJECT_ID
其中MY_PROJECT_ID是在 firebase列表
表的项目ID /实例列中输入第一个条目。查看 firebase use --help
命令设置一个目录的默认项目
After accomplishing all the necessary steps on firebase.com/docs and upgrading my app to newer version I still can't run the deploy it using firebase-tools
.
$ firebase deploy MY_APP_NAME
Gives following stack:
/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)
Reading this Can't deploy to firebase . Get ENOENT error I've tried to apply sudo, that helped a bit more - and following: $ sudo firebase deploy
after a noticeable pause of 3-5 seconds results in
Error: Invalid Firebase specified.
Having trouble? Try firebase deploy --help
However doing: $ sudo firebase list
shows that the project exists:
┌────────────────────────┬───────────────────────┬─────────────┐
│ Name │ Project ID / Instance │ Permissions │
├────────────────────────┼───────────────────────┼─────────────┤
│ MY_APP_NAME (current) │ MY_APP_NAME │ Owner
Any ideas will be appreciated.
I have NPM 3.8.6 @ Node v6.0.0 @ Mac 10.11
First off, fixing your permissions error is fairly simple:
sudo chown -R $USER ~/.config/configstore
Then, to deploy the command is
firebase deploy --project MY_PROJECT_ID
Where MY_PROJECT_ID is the first entry in the 'Project ID / Instance' column of the firebase list
table. Check out firebase use --help
command to set the default project for a directory
这篇关于无法执行Firebase部署 - 错误:指定的Firebase无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!