Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Carole Nissen
Carole Nissen
5,655 Points

Automating Your Development with Webpack Dev Server3:27 - npm start won't run

Just struggling through the webpack workshop and just added the "start": "webpack-dev-server" line into package.json and now npm start throws an error that's obv associated with that line - although I've copied it precisely. I've had a few problems so far and solved them with the help of the questions, but I'm stuck on this one. I've tried changing the version of webpack in package.json as suggested before, deleting the node_modules before running npm install and also changed various 'path' entries as suggested by another poster who had a similar problem, but nothing works.... the error message is as follows: Error: Cannot find module 'webpack/bin/config-yargs' ...... npm ERR! Darwin 16.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! node v6.10.3 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! webpack-treehouse-example@0.0.1 start: webpack-dev-server npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the webpack-treehouse-example@0.0.1 start script 'webpack-dev-server'. npm ERR! Make sure you have the latest version of node.js and npm installed.

and yes, I have the latest versions installed!

Can anyone suggest a solution? Thank you!