Running Yarn in a Trellis + Bedrock + Sage + Vagrant environment

423 views Asked by At

Learning how to use Vagrant environments!

I'm trying to run Yarn in a Trellis + Bedrock + Sage + Vagrant environment and I keep getting the following error when I run yarn run start.

Couldn't find the binary webpack --hide-modules --watch --config resources/assets/build/webpack.config.js

I'm not quite sure what I'm doing wrong... I'm running yarn run start in the theme directory within my vagrant environment, ie. vagrant@test:/srv/www/test.io/current/web/app/themes/newTheme

1

There are 1 answers

0
sleepy_daze On BEST ANSWER

I needed to update webpack via npm and I also ran npm -g install --save-dev for good measure.