小编Coo*_*kid的帖子

无法安装gem,因为"未定义的方法`invoke_with_build_args'代表nil:NilClass"

我在Ruby轨道上,我正处于Ruby on Rails的安装过程中.

我正在尝试安装宝石,但它没有发生,我不知道为什么以及如何解决它.

$gem install bundler

ERROR:  Loading command: install (LoadError)
dlopen(/Users/nthulanemakgato/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-    darwin13.0/openssl.bundle, 9): Library not loaded:     /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/nthulanemakgato/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-    darwin13.0/openssl.bundle
  Reason: image not found -     /Users/nthulanemakgato/.rbenv/versions/2.1.1/lib/ruby/2.1.0/x86_64-darwin13.0/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Run Code Online (Sandbox Code Playgroud)

这是我尝试过的解决方案之一:

$CONFIGURE_OPTS="--with-openssl-dir=brew --prefix openssl" rbenv install 2.1.1

rbenv: /Users/nthulanemakgato/.rbenv/versions/2.1.1 already exists
continue with installation? (y/N) y
Downloading yaml-0.1.6.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/5fe00cda18ca5daeb43762b80c38e06e
Installing yaml-0.1.6...

BUILD FAILED

Inspect or clean up the working tree at     /var/folders/tj/_bd6whds6lb7wtn2m8ylwx7h0000gp/T/ruby-build.20140429120202.53716
Results logged to /var/folders/tj/_bd6whds6lb7wtn2m8ylwx7h0000gp/T/ruby-    build.20140429120202.53716.log

Last 10 …
Run Code Online (Sandbox Code Playgroud)

ruby macos openssl ruby-on-rails

6
推荐指数
2
解决办法
1万
查看次数

Firestore 模拟器不显示数据

我正在尝试将我的模拟器 firestore 数据库与我的网络应用程序连接起来。奇怪的是,我能够使用模拟器身份验证和模拟器存储分别创建用户和上传文件,但是当我尝试将数据推送到 firestore 模拟器时,什么也没有发生,因为模拟器中没有显示任何内容,并且执行时没有任何错误代码。

我可以看到Requests如下内容,但Data模拟器中什么也没有。 在此输入图像描述 在此输入图像描述

任何帮助,将不胜感激。

编辑:添加更多代码片段

import { initializeApp } from "firebase/app";
import { connectAuthEmulator, getAuth } from "firebase/auth";
import { connectFirestoreEmulator, getFirestore } from "firebase/firestore";
import { connectFunctionsEmulator, getFunctions } from "firebase/functions";
import { getAnalytics } from "firebase/analytics";
require("firebase/storage");
import { getStorage, connectStorageEmulator } from "firebase/storage";

// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries

const hostname = window.location.hostname;
console.log("hostname: ", hostname);
const app =
  hostname === "localhost" …
Run Code Online (Sandbox Code Playgroud)

firebase firebase-tools google-cloud-firestore

5
推荐指数
1
解决办法
562
查看次数