Installation error - EISDIR, illegal operation on a directory

#1

Hello!
I installed Ghost from npm with command npm install ghost-cli@latest -g. I ecountered error when installing Ghost (ghost install local) on my Windows 10 (ver 1809) today. Here is the info from logs.

Debug Information:
    OS: Microsoft Windows, v10.0.17763
    Node Version: v10.15.1
    Ghost-CLI Version: 1.9.9
    Environment: development
    Command: 'ghost install local'
An error occurred.
Message: 'EISDIR: illegal operation on a directory, symlink '\\?\E:\Web\Ghost\LocalTest\versions\2.18.3' -> '\\?\E:\Web\Ghost\LocalTest\current''

Stack: Error: EISDIR: illegal operation on a directory, symlink '\\?\E:\Web\Ghost\LocalTest\versions\2.18.3' -> '\\?\E:\Web\Ghost\LocalTest\current'
    at Object.symlinkSync (fs.js:905:3)
    at symlinkWindows (C:\Users\noonepc\AppData\Roaming\npm\node_modules\ghost-cli\node_modules\symlink-or-copy\index.js:143:18)
    at symlinkOrCopySync (C:\Users\noonepc\AppData\Roaming\npm\node_modules\ghost-cli\node_modules\symlink-or-copy\index.js:83:5)
    at InstallCommand.link (C:\Users\noonepc\AppData\Roaming\npm\node_modules\ghost-cli\lib\commands\install.js:103:9)
    at Promise.resolve.then.then.skipped (C:\Users\noonepc\AppData\Roaming\npm\node_modules\ghost-cli\node_modules\listr\lib\task.js:167:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
Code: EISDIR
Path: \\?\E:\Web\Ghost\LocalTest\versions\2.18.3

What can I do about that?

#2

What CLI tool are you using in Windows?

You are probably running into the same problem discussed here:

1 Like
#3

If I understood your question correctly, I used the one installed with npm install ghost-cli@latest -g. I tried running installation both via CMD and PowerShell (also as administrator). I’he read this github page and I’ll try to make a partition with NTFS instead exFAT.

#4

Yay! ^^ Installed succesfully! Thank you! :grin:

#5

I meant which shell you were using: powershell, CMD etc

@kazik56 What was the solution in the end? Using a different cli/shell or a different FS?

#6

Using a drifferent FS. In my case I switched from exFAT to NTFS.

closed #7

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.