$ yarn --version [DEPRECATION] The trollop gem has been renamed to optimist and will no longer be supported. Please switch to optimist as soon as possible. Yarn v0.1.1 2011 Jesper Kjeldgaard
rails assets:precompile Traceback (most recent call last): 4: from /home/pop/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `<main>' 3: from /home/pop/.rvm/gems/ruby-2.7.2/bin/ruby_executable_hooks:22:in `eval' 2: from /home/pop/.rvm/gems/ruby-2.7.2/bin/yarn:23:in `<main>' 1: from /home/pop/.rvm/gems/ruby-2.7.2/gems/bundler-2.2.11/lib/bundler/rubygems_integration.rb:390:in `block in replace_bin_path' /home/pop/.rvm/gems/ruby-2.7.2/gems/bundler-2.2.11/lib/bundler/rubygems_integration.rb:362:in `block in replace_bin_path': can't find executable yarn for gem yarn. yarn is not currently included in the bundle, perhaps you meant to add it to your Gemfile? (Gem::Exception) Yarn not installed. Please download and install Yarn from https://yarnpkg.com/lang/en/docs/install/ Exiting!
-sh-4.2$ cd .bundle/ -sh-4.2$ ls config -sh-4.2$ ls -lh total 4.0K -rw-r--r-- 1 webapp webapp 94 Mar 3 07:58 config -sh-4.2$ cat config --- BUNDLE_DEPLOYMENT: "true" BUNDLE_PATH: "vendor/bundle" BUNDLE_WITHOUT: "test:development" -sh-4.2$
[ec2-user@ip-172-31-28-237 ~]$ yarn -v 1.22.5
$ node -v v14.16.0 $ yarn -v 1.22.5 $ rails assets:precompile Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.11). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.11`. Compiling... Compilation failed: yarn run v1.22.5 info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command "webpack" not found.