LoginSignup
0
0

More than 1 year has passed since last update.

デプロイ時にエラー「ModuleNotFoundError: Module not found: Error: Can't resolve 'turbolinks' ...」が出る

Posted at

前提

Rails 6.1.3
Ruby 2.6.5

エラー内容

bundle exec cap production deploy実行時にこのようなエラーが出ました。

ModuleNotFoundError: Module not found: Error: Can't resolve 'turbolinks'
  /var/www/アプリ名/shared/node_modules/turbolinks doesn't exist

結論(解決方法)

この順に打てばいいです。

$ npm i  ・・node_modulesがインストールされます。
$ bundle exec cap production deploy

補足

turbolinksとはJSのライブラリのことです。
node_modules とは各種パッケージがインストールされるディレクトリ先のことです。
今回のエラーはディレクトリ先が見つからないというエラーです。

参考記事

node_modulesの再インストール方法

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0