ElementUI / element-in-laravel-starter

Laravel Project with Vue2 and Element
731 stars 154 forks source link

cross-env.js path in package.json #16

Closed wonyeouuu closed 7 years ago

wonyeouuu commented 7 years ago

I found that cross-env has updated their path to node_modules/cross-env/dist/bin/cross-env.js. We should modify the path in scripts in package.json and then run npm run dev.

moxiaobei2 commented 7 years ago

how? I get the error:Cannot find module '/private/var/www/element-in-laravel-starter/node_modules/cross-env/bin/cross-env.js'

wonyeouuu commented 7 years ago

@moxiaobei2 add the '/dist' part in the scripts part of package.json file

uran1980 commented 7 years ago

@see https://github.com/JeffreyWay/laravel-mix/issues/478#issuecomment-284191242

Sliverwing commented 7 years ago

19 fixed this.

adanwo commented 7 years ago

From Windows: Right clic over folder. Git bash npm run dev