---
title: "Rails Logs: error 小處理紀錄"
description: "可是在  裡已經有了sqlite3卻出現錯誤"
author: "kidneyweakx"
published: 2019-03-27T00:00:00.000Z
updated: 2026-06-02T17:19:18.209Z
lang: zh-TW
tags: ["程式筆記", "Ruby on Rails"]
canonical: https://kidneyweakx.com/blog/19log-0327-railserror
---

# Rails Logs: error 小處理紀錄

### Runtime **error**

```ruby
'Could not find a JavaScript runtime' but execjs AND therubyracer are in Gemfile
```

## **solution.**

只要在 `gemfile` 加入

```ruby
gem 'execjs'
gem 'therubyracer', :platforms => :ruby
```

就解決了

### 出現這個warning

```ruby
add gem 'sqlite3'
```

可是在 `gemfile` 裡已經有了sqlite3卻出現錯誤

### **solution.**

將原本

```ruby
gem 'sqlite3'
```

改成

```ruby
gem 'sqlite3','~> 1.3.0'
```

\
覺得 ruby 最大問題就是 gem 依賴問題很多，但提示過於糟糕
