Yarn installs itself twice every time I precompile assets

It hasn’t always done this, but it has started to do it every time I precompile my assets.This is a Rails 6 application, with a mix of pipeline and npm assets, and I just don’t know where in the tens of thousands of NPM packages or the many new config files to start looking for a reason for this behavior. It doesn’t seem to harm anything, but it does waste time.

Here’s what it looks like:

jill@devoll-admin:~/www/devoll-admin$ RAILS_ENV=production rake assets:precompile
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "linux" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > webpack-dev-server@3.10.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
[4/4] Building fresh packages...
Done in 7.67s.
yarn install v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "linux" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > webpack-dev-server@3.10.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
warning "webpack-dev-server > webpack-dev-middleware@3.7.2" has unmet peer dependency "webpack@^4.0.0".
[4/4] Building fresh packages...
Done in 7.50s.
I, [2020-06-09T23:37:30.047742 #9101]  INFO -- : Writing /var/www/devoll-admin/public/assets/application-5d9d62b3a6e2a591fd87aa382225bdf2db02bfe9662b0f1cec280442789a7de0.css
I, [2020-06-09T23:37:30.048572 #9101]  INFO -- : Writing /var/www/devoll-admin/public/assets/application-5d9d62b3a6e2a591fd87aa382225bdf2db02bfe9662b0f1cec280442789a7de0.css.gz
I, [2020-06-09T23:37:30.053127 #9101]  INFO -- : Writing /var/www/devoll-admin/public/assets/custom-5d9d62b3a6e2a591fd87aa382225bdf2db02bfe9662b0f1cec280442789a7de0.css
I, [2020-06-09T23:37:30.054126 #9101]  INFO -- : Writing /var/www/devoll-admin/public/assets/custom-5d9d62b3a6e2a591fd87aa382225bdf2db02bfe9662b0f1cec280442789a7de0.css.gz
Everything's up-to-date. Nothing to do

Walter