ローカルから本番環境へ移行中の初心者です。
アプリをヘロクへデプロイすると画像が表示されませんでした。
コンパイルが必要だという情報を得て
$ bundle exec rake assets:precompile
とすると
Yarn executable was not detected in the system. Download Yarn at https://yarnpkg.com/en/docs/install
このような表示がでたので
#yarnをインストール $ curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
このようにしてインストールしてバージョンの確認をしてみたところ
$ yarn --version Node version 0.10.48 is not supported, please use Node.js 4.0 or higher.
となりました。yarnのバージョンだっていうのにNodeのバージョンが出てきましてもうこれはわからないと思っているのですが、とりあえずNodeのバージョンを確認すると
$ node -v v0.10.48
と確かに古いようなのでアップデートをと思いましたがやり方がわかりません。
どなたか教えていただけませんでしょうか。
やってみたこと
]$ curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
許可がないとエラー(下記)
## Installing the NodeSource Node.js 6.x LTS Boron repo... ## Inspecting system... + rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release + uname -m ## Confirming "el6-x86_64" is supported... + curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_6.x/el/6/x86_64/nodesource-release-el6-1.noarch.rpm' ## Downloading release setup RPM... + mktemp + curl -sL -o '/tmp/tmp.Prr8xAUWoD' 'https://rpm.nodesource.com/pub_6.x/el/6/x86_64/nodesource-release-el6-1.noarch.rpm' ## Installing release setup RPM... + rpm -i --nosignature --force '/tmp/tmp.Prr8xAUWoD' エラー: can't create transaction lock on /var/lib/rpm/.rpm.lock (許可がありません) Error executing command, exiting
[vagrant@localhost mymemo]$ npm --version 1.3.6 [vagrant@localhost mymemo]$ nvm --virsion -bash: nvm: コマンドが見つかりません [vagrant@localhost mymemo]$ npm install -g n npm http GET https://registry.npmjs.org/n npm http GET https://registry.npmjs.org/n npm http GET https://registry.npmjs.org/n npm ERR! Error: CERT_UNTRUSTED npm ERR! at SecurePair.<anonymous> (tls.js:1430:32) npm ERR! at SecurePair.emit (events.js:92:17) npm ERR! at SecurePair.maybeInitFinished (tls.js:1029:10) npm ERR! at CleartextStream.read [as _read] (tls.js:521:13) npm ERR! at CleartextStream.Readable.read (_stream_readable.js:341:10) npm ERR! at EncryptedStream.write [as _write] (tls.js:418:25) npm ERR! at doWrite (_stream_writable.js:226:10) npm ERR! at writeOrBuffer (_stream_writable.js:216:5) npm ERR! at EncryptedStream.Writable.write (_stream_writable.js:183:11) npm ERR! at write (_stream_readable.js:602:24) npm ERR! If you need help, you may report this log at: npm ERR! <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm ERR! <npm-@googlegroups.com> npm ERR! System Linux 2.6.32-696.20.1.el6.x86_64 npm ERR! command "node" "/usr/bin/npm" "install" "-g" "n" npm ERR! cwd /home/vagrant/mymemo npm ERR! node -v v0.10.48 npm ERR! npm -v 1.3.6 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/vagrant/mymemo/npm-debug.log npm ERR! not ok code 0
以上です。 よろしくおねがいします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/01 00:40
2018/05/01 01:11
2018/05/01 11:56