42908
設定を変更してproductionでyarnを使えるようにすると以下エラーが出ます  
bundle exec cap production deploy

```

         01 yarn install --prefer-offline --production --no-progress
      01 Node version 0.10.46 is not supported, please use Node.js 4.0 or 
    higher.
    (Backtrace restricted to imported tasks)
    cap aborted!
    SSHKit::Runner::ExecuteError: Exception while executing as         
    ban@xxxxxxx: yarn exit status: 1
    yarn stdout: Nothing written
    yarn stderr: Node version 0.10.46 is not supported, please use 
    Node.js 4.0 or higher.
    
    
    Caused by:
    SSHKit::Command::Failed: yarn exit status: 1
    yarn stdout: Nothing written
    yarn stderr: Node version 0.10.46 is not supported, please use 
    Node.js 4.0 or higher.
    
    Tasks: TOP => deploy:updated => yarn:install
    (See full trace by running task with --trace)
    The deploy has failed with an error: Exception while executing as 
    ban@xxxxxxxx: yarn exit status: 1
    yarn stdout: Nothing written
    yarn stderr: Node version 0.10.46 is not supported, please use Node.js 
    4.0 or higher.
    
    
    ** DEPLOY FAILED
    ** Refer to log/capistrano.log for details. Here are the last 20 
    lines:
    
```

awsなんでsshで直接入ってyarnをインストールしても同じエラーが出ます。  
解決方法ご存知でしたら教えてください

環境は以下の通りです。

```

    $ cat /etc/system-release
    Amazon Linux AMI release 2016.09
    
    $ yum --version
    3.4.3
    Installed: rpm-4.11.2-2.73.amzn1.x86_64 at 2016-09-23 10:00
    Built    : Amazon.com, Inc. <http://aws.amazon.com> at 2015-11-16 21:31
    Committed: Ben Cressey <bcressey@amazon.com> at 2015-03-25
    
    Installed: yum-3.4.3-137.67.amzn1.noarch at 2016-09-23 10:01
    Built    : Amazon.com, Inc. <http://aws.amazon.com> at 2016-09-20 21:41
    Committed: Andrew Jorgensen <ajorgens@amazon.com> at 2016-09-12
    
```
CC BY-SA 3.0
2018-04-03T13:30:03.193
42905
2018-04-05T14:53:09.417
2018-04-04T16:33:39.690
3068
10851
question
ruby-on-rails capistrano
capistranoでyarnとか入れようとしたらエラーになる
エラーメッセージをみたところものすごく古いnode.js(0.10.46)がインストールされているようです。

このバージョンでは使用できないので何らかの方法で新しいものに入れ換えてください。
CC BY-SA 3.0
2018-04-03T14:18:44.833
42908
2018-04-03T14:18:44.833
2376
42905
answer