Fails on Mac - dotnet new --install Microsoft.AspNetCore.SpaTemplates::* #682

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

Originally created by @jsinh on 6/6/2017

Trying to install SPA templates on dotnet cli - but seems to fail to complete on my MAC
MacOS - 10.12.5

Jsinhs-MacPro:~ jsinh$ dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
  Restoring packages for /Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj...
  Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.io.compression.zipfile/index.json'.
  Too many open files
  Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.io.compression/index.json'.
  Too many open files
  Failed to download package 'System.Threading.Timer.4.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.threading.timer/4.0.1/system.threading.timer.4.0.1.nupkg'.
  An error occurred while sending the request.
    Couldn't connect to server
  Failed to download package 'System.Threading.Timer.4.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.threading.timer/4.0.1/system.threading.timer.4.0.1.nupkg'.
  An error occurred while sending the request.
    Couldn't connect to server
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Failed to download package 'System.Threading.Timer.4.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.threading.timer/4.0.1/system.threading.timer.4.0.1.nupkg'. [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : An error occurred while sending the request. [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error :   Couldn't connect to server [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]
/usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Unable to load package 'System.Threading.Timer'. [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj]

The installation of SPA templates did work though via yo when I tried.
Is this my machine only issue or this is not intended to work on Mac / non-windows environment?

Thanks in advance

*Originally created by @jsinh on 6/6/2017* Trying to install SPA templates on dotnet cli - but seems to fail to complete on my MAC MacOS - 10.12.5 ``` Jsinhs-MacPro:~ jsinh$ dotnet new --install Microsoft.AspNetCore.SpaTemplates::* Restoring packages for /Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj... Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.io.compression.zipfile/index.json'. Too many open files Retrying 'FindPackagesByIdAsync' for source 'https://api.nuget.org/v3-flatcontainer/system.io.compression/index.json'. Too many open files Failed to download package 'System.Threading.Timer.4.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.threading.timer/4.0.1/system.threading.timer.4.0.1.nupkg'. An error occurred while sending the request. Couldn't connect to server Failed to download package 'System.Threading.Timer.4.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.threading.timer/4.0.1/system.threading.timer.4.0.1.nupkg'. An error occurred while sending the request. Couldn't connect to server /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Failed to download package 'System.Threading.Timer.4.0.1' from 'https://api.nuget.org/v3-flatcontainer/system.threading.timer/4.0.1/system.threading.timer.4.0.1.nupkg'. [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : An error occurred while sending the request. [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Couldn't connect to server [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] /usr/local/share/dotnet/sdk/1.0.4/NuGet.targets(97,5): error : Unable to load package 'System.Threading.Timer'. [/Users/jsinh/.templateengine/dotnetcli/v1.0.4/scratch/restore.csproj] ``` The installation of SPA templates did work though via `yo` when I tried. Is this my machine only issue or this is not intended to work on Mac / non-windows environment? Thanks in advance
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#682
No description provided.