Installing issue on Mac #556

Closed
opened 2025-08-09 17:16:45 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @darewreck54 on 7/21/2017

Run I run "Microsoft.AspNetCore.SpaTemplates

dotnet new --install Microsoft.AspNetCore.SpaTemplates::*

/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :   The type initializer for 'System.Net.Http.CurlHandler' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :   The type initializer for 'Http' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :   The type initializer for 'HttpInitializer' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :   The type initializer for 'CryptoInitializer' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :   Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :    (Exception from HRESULT: 0x8007007E) [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
Templates                 Short Name      Language      Tags          
----------------------------------------------------------------------
Console Application       console         [C#], F#      Common/Console
Class library             classlib        [C#], F#      Common/Library
Unit Test Project         mstest          [C#], F#      Test/MSTest   
xUnit Test Project        xunit           [C#], F#      Test/xUnit    
ASP.NET Core Empty        web             [C#]          Web/Empty     
ASP.NET Core Web App      mvc             [C#], F#      Web/MVC       
ASP.NET Core Web API      webapi          [C#]          Web/WebAPI    
Solution File             sln                           Solution    
```  


Thanks,
Derek
*Originally created by @darewreck54 on 7/21/2017* Run I run "Microsoft.AspNetCore.SpaTemplates `dotnet new --install Microsoft.AspNetCore.SpaTemplates::*` ```` /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : The type initializer for 'System.Net.Http.CurlHandler' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : The type initializer for 'Http' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : The type initializer for 'HttpInitializer' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : The type initializer for 'CryptoInitializer' threw an exception. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Unable to load DLL 'System.Security.Cryptography.Native.OpenSsl': The specified module could not be found. [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : (Exception from HRESULT: 0x8007007E) [/Users/user/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] Templates Short Name Language Tags ---------------------------------------------------------------------- Console Application console [C#], F# Common/Console Class library classlib [C#], F# Common/Library Unit Test Project mstest [C#], F# Test/MSTest xUnit Test Project xunit [C#], F# Test/xUnit ASP.NET Core Empty web [C#] Web/Empty ASP.NET Core Web App mvc [C#], F# Web/MVC ASP.NET Core Web API webapi [C#] Web/WebAPI Solution File sln Solution ``` Thanks, Derek
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#556
No description provided.