matthewjberger / scoop-nerd-fonts

A scoop bucket for installing nerd fonts
The Unlicense
360 stars 34 forks source link

FiraCode installer script fails #70

Closed nicksspirit closed 4 years ago

nicksspirit commented 4 years ago

image

It looks like it is not able to copy the ttf files into the C:\Windows\Fonts directory.

TheZoker commented 4 years ago

Mine looks like this: Screenshot_2020 04 18_15h33m20s_001_

Edit: Fixed it by using sudo scoop install FiraCode (after installing sudo via scoop install sudo)

matthewjberger commented 4 years ago

If the Copy-Item cmdlet is failing with an error saying The requested operation cannot be performed on a file with a user-mapped section open, it's because another process is locking that directory. It can be tricky to pin down what is locking the folder locally but unfortunately it cannot be fixed in the manifest or in scoop itself

ueberBrot commented 4 years ago

Edit: Fixed it by using sudo scoop install FiraCode (after installing sudo via scoop install sudo)

This is the intended use as stated in the README . You can do it that way or start the Shell with admin privileges.

Note: Admin rights are required to install these fonts, because their installers modify the registry. Additionally, restarting your computer after uninstalling a font is necessary for the font to be fully removed.


If I'm not mistaken you need admin privileges to install anything on C drive except its in you user folder. That's why you need to elevate PowerShell.