`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:
- Created a year ago
- Comments:12
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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