Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webpack-dev-server will not run #52

Open
d2rd opened this issue May 5, 2018 · 1 comment
Open

webpack-dev-server will not run #52

d2rd opened this issue May 5, 2018 · 1 comment

Comments

@d2rd
Copy link

d2rd commented May 5, 2018

webpack-dev-server will not run. Following the video #3 for Redux I get the following error:

D2rdMac:4-redux d2rd$ npm run dev

> [email protected] dev /Users/d2rd/LambdaSchool/Tutorials/LearnCodeAcademy/react-js-tutorials/4-redux
> webpack-dev-server --content-base src --inline --hot

module.js:540
    throw err;
    ^

Error: Cannot find module 'webpack/bin/config-optimist'
    at Function.Module._resolveFilename (module.js:538:15)
    at Function.Module._load (module.js:468:25)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/d2rd/LambdaSchool/Tutorials/LearnCodeAcademy/react-js-tutorials/4-redux/node_modules/webpack-dev-server/bin/webpack-dev-server.js:64:1)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `webpack-dev-server --content-base src --inline --hot`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additionallogging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/d2rd/.npm/_logs/2018-05-05T23_33_02_290Z-debug.log
D2rdMac:4-redux d2rd$ npm install webpack
npm WARN [email protected] requires a peer of webpack@1 || 2 || ^2.1.0-beta|| ^2.2.0-rc but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@^1.0.0 || ^2.0.0 || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of webpack@>=1.3.0 <3 butnone is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

+ [email protected]
updated 1 package in 25.33s
D2rdMac:4-redux d2rd$
@MESepehr
Copy link

Hello, the below solution solved my problem
webpack/react-starter#34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants