简体   繁体   English

尝试运行 firebase 仿真器时出现 Java 错误

[英]Java error when trying to run firebase emulators

I am trying to run the firebase emulators using我正在尝试使用 firebase 模拟器运行

firebase emulators:start

however this is the error I get但是这是我得到的错误

Error: Could not spawn java -version .错误:无法生成java -version Please make sure Java is installed and on your system PATH.请确保 Java 已安装并在您的系统路径上。

I then run然后我跑

npm install java

I cannot install java.我无法安装 java。

try this command line试试这个命令行

sudo apt install default-jre

then run the command然后运行命令

firebase emulators:start

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 github 操作上运行 firebase 模拟器 - Run firebase emulators on github actions Jest useFakeTimers() 在与 firebase 模拟器一起使用时会阻塞 - Jest useFakeTimers() blocks when used with firebase emulators 当函数目录位于不同的项目/位置时运行 firebase 模拟器 - Running the firebase emulators when the functions directory is in a different project/location 尝试将图像上传到 Firebase 存储时出错 - Error when trying to upload images to Firebase storage 尝试在 firebase 中使用 google 对用户进行身份验证时出错 - Error when trying to authenticate users with google in firebase 带有模拟器的 Firebase 函数和存储 getSignedUrl - Firebase Functions and Storage getSignedUrl with Emulators 当我尝试从 firebase 检索数据到 viewpager2 时,无法将 java.util.HashMap 类型的值转换为字符串错误 - Failed to convert value of type java.util.HashMap to String error when I'm trying to retrieve data from firebase to viewpager2 Firebase function 尝试写入 firebase 存储“Firebase 存储:用户无权访问”时出错 - Firebase function getting error when trying to write to firebase storage "Firebase Storage: User does not have permission to access" 尝试将 Firebase 依赖项添加到 Qt 项目时生成错误 - Build error when trying to add Firebase dependency to Qt project 当我尝试在 firebase 存储上导入文件时出现错误 - im getting error when im trying to import file on firebase storage
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM