我第一次使用NuGet软件包管理器控制台。我以前使用过NuGet解决方案GUI控制台。
但是我遇到此错误。
Each package is licensed to you by its owner. NuGet is not responsible for, nor does it grant any licenses to, third-party packages. Some packages may include dependencies which are governed by additional licenses. Follow the package source (feed) URL to determine any dependencies.
Package Manager Console Host Version 4.9.3.5777
Type 'get-help NuGet' to see all available NuGet commands.
PM> npm init -v
npm : openssl config failed: error:02001003:system library:fopen:No such process
At line:1 char:1
+ npm init -v
+ ~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (openssl config ...No such process:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
5.6.0
openssl config failed: error:02001003:system library:fopen:No such process
PM>
我不知道发生了什么。有什么想法吗?
对我来说,最终目的是遵循本教程。
https://docs.microsoft.com/en-us/aspnet/core/signalr/javascript-client?view=aspnetcore-2.2
答案 0 :(得分:0)
我找到了解决方案。 OPENSSL_CONF环境变量阻止运行npm。现在,在删除变量后即可使用。