dotnet --info
at the end)Run the following command in Zsh:
```
dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
## Expected behavior
The CLI downloads the templates, and reports installing them, then lists them in the available templates for `dotnet new`
## Actual behavior
The following message is shown almost instantly:
zsh: no matches found: Microsoft.AspNetCore.SpaTemplates::*
## Environment data
`dotnet --info` output:
dotnet --info
.NET Command Line Tools (1.0.1)
Product Information:
Version: 1.0.1
Commit SHA-1 hash: 005db40cd1
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.12
OS Platform: Darwin
RID: osx.10.12-x64
Base Path: /usr/local/share/dotnet/sdk/1.0.1
```
This works fine if you start bash
inside Zsh and run the command inside bash.
Do you have OpenSSL installed?
Yes, and ensured it is properly linked.
I'd expect more severe-looking errors if it's an OpenSSL failure too.
However, any specific test you'd like me to do to rule out wrong version linked etc?
Thanks heaps.
@meligy - noticed that you are using zsh, have you tries using/testing in just terminal to isolate if this is just a zsh bug?
Yes, just zsh. I ran bash
inside Zsh and repeated the command and it worked just fine. I was able to find the templates listed after restarting the Zsh terminal and confirming with dotnet new --help
.
I updated the issue title and description to reflect that.
@Meligy does dotnet new --install "Microsoft.AspNetCore.SpaTemplates::*"
work? (added quotes)
It seems to work yes.
I get this error, but I also get it in bash, so, I expect it's because I have already installed the templates (not sure what's the flag to remove them).
At least both are giving the same output, and it seems to be doing something.
error : Too many open files
=> https://github.com/NuGet/Home/issues/2163
Looks like this didn't happen often because the CLI ships package cache archives but the templates performs a fresh restore.
(Workaround is ulimit -n 512
)
Given that we have a workaround and that the actual restore issue is already tracked by NuGet, I am closing this one.
I have same issue but different exception, can anyone help me to solve it?
@blackie1019 try
dotnet new --install "Microsoft.AspNetCore.SpaTemplates::*"
From @mlorbetske:
that issue was fixed as of the 1.0.4 CLI. Either updating to a later CLI build or raising the value of ulimit should fix it.
Most helpful comment
error : Too many open files
=> https://github.com/NuGet/Home/issues/2163Looks like this didn't happen often because the CLI ships package cache archives but the templates performs a fresh restore.
(Workaround is
ulimit -n 512
)