Tag: scriptcs

scriptcs – 无法读取包

我按照博客文章 ,只需两步即可运行脚本。 基本上,我这样做了: @powershell -NoProfile -ExecutionPolicy Unrestricted -Command “iex ((New-Object Net.WebClient).DownloadString(‘https://chocolatey.org/install.ps1′))” && SET PATH=%PATH%;%systemdrive%\chocolatey\bin 这样做时我得到一个错误: cinst scriptcs 无法从路径’jQuery.2.0.1.1.nupkg’读取包。 这适用于不同的机器,但它在我目前的笔记本电脑上失败了。 知道我做错了什么吗? 编辑 根据Damian的回答,下面,我只需删除位于此处的NuGet缓存的内容: C:\ Users \用户名\ AppData \本地\的NuGet \缓存