Getting `EISDIR: illegal operation on a directory` when migrating from 8.x to 9.0
See original GitHub issueReproduction
Steps to reproduce:
ng update @angular/cdk
Because there is not enough information provided by the migration, I am unable to provide a reproduction stackblitz.
Expected Behavior
Successful migration to v9, or at least a meaningful error message that tells me where something might be wrong.
Actual Behavior
What behavior did you actually see?
EISDIR: illegal operation on a directory, read
✖ Migration failed. See above for further details.
Any help is much appreciated🙏
Environment
- Angular: 9
- CDK/
Material: 8.2.1 -> 9.0.0 - Browser(s): N/A
- Operating System (e.g. Windows, macOS, Ubuntu): OSX
The error seemed similar to this issue https://github.com/angular/angular/issues/31056, but all the examples in that repo shows that additional error information
$ ng update @angular/cdk --verbose
Locating potential npmrc files:
Trying '/usr/local/etc/npmrc'...not found.
Trying '/Users/foo/.npmrc'...found.
Trying '/Users/.npmrc'...not found.
Trying '/Users/foo/.npmrc'...found.
Trying '/Users/foo/dev/.npmrc'...not found.
Trying '/Users/foo/dev/node/.npmrc'...not found.
Trying '/Users/foo/dev/node/fusekit/.npmrc'...found.
Using package manager: 'npm'
Collecting installed dependencies...
Found 186 dependencies.
Fetching dependency metadata from registry...
Locating potential npmrc files:
Trying '/usr/local/etc/npmrc'...not found.
Trying '/Users/foo/.npmrc'...found.
Trying '/Users/.npmrc'...not found.
Trying '/Users/foo/.npmrc'...found.
Trying '/Users/foo/dev/.npmrc'...not found.
Trying '/Users/foo/dev/node/.npmrc'...not found.
Trying '/Users/foo/dev/node/fusekit/.npmrc'...found.
Updating package.json with dependency @angular/cdk @ "9.0.0" (was "8.2.1")...
UPDATE package.json (9582 bytes)
✔ Packages installed successfully.
** Executing migrations of package '@angular/cdk' **
❯ Updates the Angular CDK to v9
EISDIR: illegal operation on a directory, read
✖ Migration failed. See above for further details.
$
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
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 >sfdx cli throwing error "EISDIR: illegal operation on a directory ...
You are getting the permission issues because you are probably running sfdx as your user but the sfdx dirs are owned by root....
Read more >angular/angular-cli - Gitter
@cDecker32 I get the following weird error if I try that.. there is no permissions issue here though -. EISDIR: illegal operation on...
Read more >[error: eisdir: illegal operation on a directory, read] { errno ...
If the file is empty or doesn't exist then you don't have any configurations (at that level) and you can move on to...
Read more >Laravel 8 - problem with scss and npm run dev - Laracasts
When trying to compile the scss file I get this error: npm run dev > @ dev ... Error: EISDIR: illegal operation on...
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
Thanks @paustint for all the information. This helps a lot. I think there are a few things we could do:
angular.json
file and styles configuration.Long-term we should explore (2) as using a glob is obviously not ideal.
OK - I found out some possible useful information.
node_modules/@angular
directory, the migration was successful and 0 files aside from package.json and package-lock.json were updated (which means I likely do not have anything to migrate)And that log shows this: