Home » Wordpress » Running Yarn in a Trellis + Bedrock + Sage + Vagrant environment

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

Posted by: admin November 30, 2017 Leave a comment

Questions:

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. [email protected]:/srv/www/test.io/current/web/app/themes/newTheme

Answers:

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