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

Error on ejecuting npm run dev #287

Closed
gabrieljaime opened this issue Jun 23, 2017 · 2 comments
Closed

Error on ejecuting npm run dev #287

gabrieljaime opened this issue Jun 23, 2017 · 2 comments

Comments

@gabrieljaime
Copy link

Hi, im instal a fresh laravel installation and then i install the package, but when i want to run
npm run dev

i have an error:

 cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

C:\xampp\htdocs\pm\webpack.mix.js:43
if (mix.config.inProduction) {
              ^
TypeError: Cannot read property 'inProduction' of undefined
    at Object.<anonymous> (C:\xampp\htdocs\pm\webpack.mix.js:43:15)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\xampp\htdocs\pm\node_modules\laravel-mix\setup\webpack.config.js:9:1)
    at Module._compile (module.js:570:32)

and obviously i can't find the way to fix it

Node Version : 6.11.0
Npm Version: 5.0.3
Laravel Version: 5.4.27

Thank for you help...

@timo002
Copy link

timo002 commented Jun 28, 2017

Same issue here!

You need to run npm install first.

Maybe you also need to run brew install libpng, see tcoopman/image-webpack-loader#60

After this npm run dev is working fine.

@acacha
Copy link
Collaborator

acacha commented Jul 4, 2017

Yes npm install is mandatory as usual in these kinds of projectes

@acacha acacha closed this as completed Jul 4, 2017
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

3 participants