scriptcs - 无法读取包 [英] scriptcs - Unable to read package
问题描述
我按照博客文章获取了脚本只需两步即可完成。基本上,我这样做了:
I followed a blog post to get scriptcs running in just two steps. Basically, I did this:
@powershell -NoProfile -ExecutionPolicy Unrestricted -Command "iex ((New-Object Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
然后我得了一个执行此操作时出错:
And then I got an error when doing this:
cinst scriptcs
无法从路径'jQuery.2.0.1.1.nupkg'读取包。
Unable to read package from path 'jQuery.2.0.1.1.nupkg'.
这适用于不同的机器,但它在我目前的笔记本电脑上失败了。知道我做错了什么吗?
This worked on a different machine, but it's failing on my current laptop. Any idea what I'm doing incorrectly?
编辑
按照Damian的说法回答,下面,我只需要删除位于此处的NuGet缓存的内容:
As per Damian's answer, below, I just had to delete the contents of the NuGet cache, located here:
C:\ Users \ userName \\ \\ APPData\Local \NuGet\Cache
C:\Users\userName\AppData\Local\NuGet\Cache
推荐答案
来自Chocolatey GitHub仓库的这个错误表明你需要清除NuGet缓存(%LocalAppData%\ NuGet \Cache )这应该自行解决。
This bug from the Chocolatey GitHub repo suggests that you need to clear the NuGet cache (%LocalAppData%\NuGet\Cache) and this should resolve itself.
这篇关于scriptcs - 无法读取包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!