Skip to content

mkdir(): File exists #717

@CicerBro

Description

@CicerBro

I keep getting this mkdir() error intermittently when saving files while running the npm run watch command. Sometimes I have to re-save the file 5+ times before it actually runs without errors.

Can't see a reason why as it doesn't always happen.

                         
   Laravel Mix v6.0.49   
                         

✔ Compiled Successfully in 99ms
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────┐
│                                                                                                                                                                                           File │ Size     │
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────┤
│                                                                                                                                                                                    /js/main.js │ 289 KiB  │
│                                                                                                                                                                                   css/main.css │ 28.9 KiB │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────┘
webpack compiled successfully

Building local site 
Writing files to destination...


   ErrorException 

  mkdir(): File exists

  at vendor/illuminate/filesystem/Filesystem.php:651
    647▕         if ($force) {
    648▕             return @mkdir($path, $mode, $recursive);
    649▕         }
    650▕ 
  ➜ 651▕         return mkdir($path, $mode, $recursive);
    652▕     }
    653▕ 
    654▕     /**
    655▕      * Move a directory.



Jigsaw build failed, see above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions