有人可以帮忙吗?我对此是完全陌生的,但是当我运行脚本时,却遇到了错误。如果有人可以教我或帮助我,那将是一个很大的帮助
functions @ deploy /用户/ kapilgaur /下载/ React-Native-APP-master / functions firebase deploy --only功能
sh: firebase: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! functions@ deploy: `firebase deploy --only functions`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the functions@ deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/kapilgaur/.npm/_logs/2020-03-05T13_09_05_478Z-debug.log
The terminal process terminated with exit code: 1
终端将被任务重用,按任意键将其关闭。
答案 0 :(得分:0)
在您的终端中运行
alias firebase="`npm config get prefix`/bin/firebase"
或者您只是在全局安装Firebase工具
npm install -g firebase-tools
他们俩都应该做到这一点,