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.

Source Diff: Error: EISDIR: illegal operation on a directory, read

See original GitHub issue

Summary

I want to use the Source Diff feature in VSCode.

When I follow the instructions:

sfdx plugins:install @salesforce/sfdx-diff

I get this error:

$ sfdx plugins:install @salesforce/sfdx-diff This plugin is not digitally signed and its authenticity cannot be verified. Continue installation y/n?: y Finished digital signature check. Error: EISDIR: illegal operation on a directory, read at Object.readSync (fs.js:493:3) at tryReadSync (fs.js:332:20) at Object.readFileSync (fs.js:369:19) at onUnexpectedError (C:\Users\Robert\AppData\Local\sfdx\client\7.22.0-de5c6ecff8\node_modules\yarn\lib\cli.js:91833:100) at C:\Users\Robert\AppData\Local\sfdx\client\7.22.0-de5c6ecff8\node_modules\yarn\lib\cli.js:91936:9 Installing plugin @salesforce/sfdx-diff… ! Error: yarn add @salesforce/sfdx-diff@latest --non-interactive --mutex=file:C:/Users/Robert/AppData/Local/sfdx/yarn.lock --preferred-cache-folder=C:/Users/Robert/AppData/Local/sfdx/yarn --check-files exited with code 1 at ChildProcess.forked.on (C:/Users/Robert/AppData/Local/sfdx/client/7.22.0-de5c6ecff8/node_modules/@oclif/plugin-plugins/lib/yarn.js:31:28)

Additional information

Version: 1.38.0 (user setup) Commit: 3db7e09f3b61f915d03bbfa58e258d6eee843f35 Date: 2019-09-03T21:49:13.459Z Electron: 4.2.10 Chrome: 69.0.3497.128 Node.js: 10.11.0 V8: 6.9.427.31-electron.0 OS: Windows_NT x64 10.0.17763

sfdx --version sfdx-cli/7.22.0-de5c6ecff8 win32-x64 node-v10.15.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
j-fischercommented, Mar 12, 2021

I ran into this issue and was able to resolve it by deleting the yarn.lock folder in C:/Users/Me/AppData/Local/sfdx/ manually and then re-running the install command.

I hope this helps anyone else running into this issue, it applies to any plugin installation.

0reactions
smaddox-sfcommented, Jul 12, 2021

We have updated the Source Diff commands in VS Code. You no longer need a CLI plugin. Check out the documentation for more details.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: EISDIR: illegal operation on a directory, read · Issue #658
Go to the developer tools (F12 in the browser), then select the three dots in the upper right corner, and go to Settings....
Read more >
SFDX Source Diff: Error: EISDIR: illegal operation on a ...
I want to use the Source Diff feature in VSCode. When I follow the instructions to install it, by running this command: sfdx...
Read more >
eisdir: illegal operation on a directory - You.com
EISDIR stands for "Error, Is Directory". This means that yarn is trying to do something to a file but it is a directory....
Read more >
Error: EISDIR: illegal operation on a directory, read
I repeatedly receive this error when deploying my hosting project: Error: EISDIR: illegal operation on a directory, read.
Read more >
cypress-io/cypress - Gitter
After reading through some of the already reported issues I decided to follow the docs on the ... Error: EISDIR: illegal operation on...
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