dotnet / dotnet/aspnetcore

ASP.NET Core Web Application w/Angular template on macOS Monterey will not start

Open
#40,696 5 comments 0 reactions 0 assignees View on GitHub
area-ui-rendering feature-spa
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 5h
Merged PRs (30d)
276

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Describe the bug

When creating an application from the template described above it will not start; with message:

> [Failed to start 'npm': Ensure that 'npm' is installed and can be found]

### Expected Behavior

By running the application I expect it to boot up and show me the demo website with "Hello World", "Counter" and "Fetch Data" pages working.

### Steps To Reproduce

On a clean install of Mac (or one where this has never been solved); create a new application with the ASP.NET Core Web Application w/Angular template.

Attempt to start it, you will see an error in the console shortly after.

### Exceptions (if any)

[Failed to start 'npm': Ensure that 'npm' is installed and can be found]

### .NET Version

6.0.201

### Anything else?

This can be solved by running dotnet run and npm start ng serve by ourselves in the terminal. After these have successfully started, you can close them and run the application again and it will work.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.