---
title: "Rails Logs: 安裝ruby環境發現 rvm not a function bug"
description: "出現這個error\nerror message 且在 .zshrc 裡面明明就有綁定  出現的怪問題的時候"
author: "kidneyweakx"
published: 2019-03-26T00:00:00.000Z
updated: 2026-06-02T17:14:56.840Z
lang: zh-TW
tags: ["程式筆記", "Ruby on Rails"]
canonical: https://kidneyweakx.com/blog/19log-0326-rvm-error
---

# Rails Logs: 安裝ruby環境發現 rvm not a function bug

### **出現這個error**

> `rvm not a function `error message 且在 .zshrc 裡面明明就有綁定 `rvm path` 出現的怪問題的時候

```ruby
error:Warning! PATH is not properly set up, '/home/me/.rvm/gems/ruby-2.x.x-p247/bin' is not available, usually this is caused by shell initialization files 
```

### **解法如下**

```Shell
rvm reset
rvm version
```

當輸入 `rvm version` 不再跳出 `rvm not a function` 就解決這個問題了

`rvm `沒綁定或 default 好正確的版本而引發的問題
