question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`dotnet new --install` of SpaTemplates fails with `no matches found` error on Zsh (macOS)

See original GitHub issue

Steps to reproduce

  1. Install dotnet SDK on Mac (version details in dotnet --info at the end)
  2. Start a new Zsh terminal
  3. 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
dasMullicommented, Mar 13, 2017

@Meligy does dotnet new --install "Microsoft.AspNetCore.SpaTemplates::*" work? (added quotes)

2reactions
dasMullicommented, Mar 13, 2017

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)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found