I was just setting up a vue project using the webpack template like stated here: http://vuejs-templates.github.io/webpack/
However after running npm run dev just to
I got the same error with yarn, but tried npm i and npm run dev instead and it worked.
npm i
npm run dev
yarn v v1.5.1 npm -v 5.6.0 node -v v10.0.0
yarn v v1.5.1
npm -v 5.6.0
node -v v10.0.0