0

我们在使用 Capistrano gem 部署应用程序时使用 ruby​​ 2.7.3 和 Rails 6.1.3.2,它会抛出以下错误 -

INFO [4158d929] Running ~/.rvm/bin/rvm ruby-2.7.3@app-6 do bundle exec rake         assets:precompile on carbonite
DEBUG [4158d929] Command: cd /export/app/app_production/releases/20220103125501 && ( export RAILS_ENV="production" RAILS_GROUPS="" ; ~/.rvm/bin/rvm ruby-2.7.3@app-6 do bundle exec rake assets:precompile )
DEBUG [4158d929] Yarn executable was not detected in the system
Download Yarn at https://yarnpkg.com/en/docs/install
DEBUG [4158d929] Yarn executable was not detected in the system
Download Yarn at https://yarnpkg.com/en/docs/install
DEBUG [4158d929] /export/app/app_production/shared/bundle/ruby/2.7.0/gems/sassc-2.4.0/lib/sassc/engine.rb:43: [BUG] Segmentation fault at 0x0000000000000000

Here are the versions of yarn, node, and npm on server:

yarn -v 1.22.17
npm -v 6.14.15
node -v v14.18.2

Even yarn is installed globally.

yarn global list
yarn global v1.22.17
Done in 0.05s.

请给一些建议。

4

0 回答 0