Scoop: Error message when updating Scoop

Created on 24 Jan 2018  路  3Comments  路  Source: lukesampson/scoop

I get an error message any time scoop updates, either when I run scoop update or when it updates prior to installing a new package. Here's the output:

C:\Users\bpoli> scoop install shasum
Updating Scoop...
out-file : Accesso al percorso 'C:\Users\bpoli\.scoop' negato.
In C:\Users\bpoli\scoop\apps\scoop\current\lib\config.ps1:56 car:27
+     convertto-json $cfg | out-file $cfgpath -encoding utf8
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (:) [Out-File], UnauthorizedAccessException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

Scoop was updated successfully!
Installing 'shasum' (0.2013.09.29) [64bit]

(third line roughly translates to Access to 'C:\Users\bpoli\.scoop' denied.)

As you can see, the error message doesn't prevent it to update or installing packages. However, I'm wondering if there's something broken in my scoop installation that can be fixed, to prevent this message to pop-up.

Most helpful comment

Hi, I've created a PR to fix this.

All 3 comments

So, the cause was that the file .scoop was hidden. This makes it inaccessible by config.ps1 somehow. Also, while this did not prevent me to update scoop, it prevented me to create aliases. Is that expected?

Hi, I've created a PR to fix this.

It's fixed now. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nitrocode picture nitrocode  路  3Comments

muhlpachr picture muhlpachr  路  3Comments

klauern picture klauern  路  3Comments

vpratfr picture vpratfr  路  3Comments

notlmn picture notlmn  路  3Comments