question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`EISDIR: illegal operation on a directory` after `npm run prod`

See original GitHub issue
  • Laravel Mix Version: 6.0.45 (npm list --depth=0)
  • Node Version (node -v): 16.15.0
  • NPM Version (npm -v): 8.10.0
  • OS: Windows 10

Description:

After upgrading to version 6.0.44 or 6.0.45 npm run prod command returns error:

Error: EISDIR: illegal operation on a directory, read
    at Object.readSync (node:fs:727:3)
    at tryReadSync (node:fs:433:20)
    at File.read (C:\WWW\laravel\komis\node_modules\laravel-mix\src\File.js:227:19)
    at File.version (C:\WWW\laravel\komis\node_modules\laravel-mix\src\File.js:234:25)
    at Manifest.hash (C:\WWW\laravel\komis\node_modules\laravel-mix\src\Manifest.js:61:74)
    at CustomTasksPlugin.applyVersioning (C:\WWW\laravel\komis\node_modules\laravel-mix\src\webpackPlugins\CustomTasksPlugin.js:110:31)
    at C:\WWW\laravel\komis\node_modules\laravel-mix\src\webpackPlugins\CustomTasksPlugin.js:23:22 {
  errno: -4068,
  syscall: 'read',
  code: 'EISDIR'
}

Downgrading to 6.0.43 fixes this issue.

Steps To Reproduce:

  • Upgrade Laravel Mix to 6.0.44 or 6.0.45.
  • Use command npm run prod

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
thecrypticacecommented, Jun 3, 2022

Fixed in https://github.com/laravel-mix/laravel-mix/commit/6cf7e93213481065a44d650510472a578f163dec

v6.0.46 has been published

Thank you for helping me figure this one out

1reaction
thecrypticacecommented, Jun 3, 2022

oh wow okay this is probably a public path normalization issue (… there’s a few of those unfortunately) — thanks I think that gives me the info I need

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM stuck giving the same error EISDIR: Illegal operation on ...
EISDIR stands for "Error, Is Directory". This means that NPM is trying to do something to a file but it is a directory....
Read more >
Error: EISDIR: illegal operation on a directory, read · Issue #658
This is just annoying to have a console stacktrace on expo start , but it does not prevent the app to run in...
Read more >
eisdir: illegal operation on a directory, open - You.com
Try this command to locate .npmrc file. npm config ls -l | grep config. Usually .npmrc locates in /Users/USER_NAME. After that run rm...
Read more >
angular/angular-cli - Gitter
Error : EISDIR: illegal operation on a directory, read at Error (native) ... ok, thanks, i thought npm start, contained within it, the...
Read more >
NPM stuck giving the same error EISDIR: Illegal operation on ...
Windows : NPM stuck giving the same error EISDIR : Illegal operation on a directory, read at error (native) [ Beautify Your Computer ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found