`dotnet new --install` of SpaTemplates fails with `no matches found` error on Zsh (macOS)
See original GitHub issueSteps to reproduce
- Install dotnet SDK on Mac (version details in
dotnet --info
at the end) - Start a new Zsh terminal
- 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
Additional Information
This works fine if you start bash
inside Zsh and run the command inside bash.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:12 (7 by maintainers)
Top Results From Across the Web
dotnet new --install of SpaTemplates fails with no matches ...
Yes, just zsh. I ran bash inside Zsh and repeated the command and it worked just fine. I was able to find the...
Read more >How to Fix Zsh Command Not Found Error on macOS [5 ...
This article explains the zsh command not found error on Mac or Linux, along with the exact reasons and 5 solutions to the...
Read more >zsh: command not found: dotnet-ef
Yes, give an example of the error: $ dotnet ef Could not execute because the specified command or file was not found. Possible...
Read more >Why do I get this error "zsh: no matches found"?
The shell is interpreting the ? in the URL as a globbing wildcard, so because of this it tries to find files matching...
Read more >zsh: no matches found - command line
I did not change anything with my zsh configuration. ... ZSH complains that it can't find any files with matching names: no matches...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Meligy does
dotnet new --install "Microsoft.AspNetCore.SpaTemplates::*"
work? (added quotes)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 isulimit -n 512
)