capistrano deployment fails node and yarn is installed in the server
00:29 bundler:install
The Gemfile's dependencies are satisfied, skipping installation
00:30 deploy:assets:precompile
01 $HOME/.rbenv/bin/rbenv exec bundle exec rake assets:precompile
01 Yarn executable was not detected in the system.
01 Download Yarn at https://yarnpkg.com/en/docs/install
01 Yarn executable was not detected in the system.
01 Download Yarn at https://yarnpkg.com/en/docs/install
01 sh: 1: node: not found
01 sh: 1: nodejs: not found
01 Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/
01 Exiting!
terminated with exception (report_on_exception is true):
/Users/tahirahmad/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/sshkit-1.21.4/lib/sshkit/runners/parallel.rb:15:in rescue in block (2 levels) in execute': Exception while executing as deploy@188.166.254.88: rake exit status: 1 (SSHKit::Runner::ExecuteError)
block (2 levels) in execute'
rake stdout: Nothing written
rake stderr: Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
sh: 1: node: not found
sh: 1: nodejs: not found
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/
Exiting!
from /Users/tahirahmad/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/sshkit-1.21.4/lib/sshkit/runners/parallel.rb:11:in
/Users/tahirahmad/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/sshkit-1.21.4/lib/sshkit/command.rb:97:in `exit_status=': rake exit status: 1 (SSHKit::Command::Failed)
rake stdout: Nothing written
rake stderr: Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
sh: 1: node: not found
sh: 1: nodejs: not found
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/
Exiting!