Laravel-mix: cp: cannot stat 'node_modules/laravel-mix/setup/webpack.mix.js': No such file or directory

Created on 20 Dec 2020  路  3Comments  路  Source: JeffreyWay/laravel-mix

  • Laravel Mix Version: #.#.# (npm list --depth=0)
  • Node Version (10.19.0):
  • NPM Version (6.14.10):
  • OS: ubuntu

Description:

i tried running the copy command its not working and when i saw in the node_moudels/laravel-mix/setup
there is on webpack.config.js
not the webpack.mix.js

Steps To Reproduce:

npm install laravel-mix --save-dev
cp node_modules/laravel-mix/setup/webpack.mix.js ./

All 3 comments

Hi @ParveenMalethia

from the latest version you have to create the webpack.mix.js manually

The documentation is still for version 5.0, but npm is already distributing version 6. At the top right of the documentation you can change it to version 6 and then everything is correct again.

Hope I could help you :)

creating it manually works but then the whole file is empty all way. What to do about that. there's no code to work on!

creating it manually works but then the whole file is empty all way. What to do about that. there's no code to work on!

hi @AjeyataVerma

In the documentation you can switch from version 5 to version 6 in the upper right corner, everything is described there.

Since there are changes in version 6, it is quite good to read the documentation at https://laravel-mix.com/docs/6.0/installation

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rlewkowicz picture rlewkowicz  路  3Comments

mstralka picture mstralka  路  3Comments

jpmurray picture jpmurray  路  3Comments

pixieaka picture pixieaka  路  3Comments

rderimay picture rderimay  路  3Comments