Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet run fails #100

Open
mrbelk opened this issue Aug 10, 2018 · 1 comment
Open

dotnet run fails #100

mrbelk opened this issue Aug 10, 2018 · 1 comment
Labels

Comments

@mrbelk
Copy link

mrbelk commented Aug 10, 2018

Trying to get started with ASP.NET core and vuejs and get this result from "dotnet run":

/usr/local/share/dotnet/sdk/2.1.301/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ObsoleteReferences.targets(33,5): warning : The tool 'Microsoft.DotNet.Watcher.Tools' is now included in the .NET Core SDK. Information on resolving this warning is available at (https://aka.ms/dotnetclitools-in-box). [/Users/matthew/Projects/aspnetcore-vue-starter/aspnetcore-vue-starter.csproj]
/usr/local/share/dotnet/sdk/2.1.301/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ObsoleteReferences.targets(33,5): warning : The tool 'Microsoft.DotNet.Watcher.Tools' is now included in the .NET Core SDK. Information on resolving this warning is available at (https://aka.ms/dotnetclitools-in-box). [/Users/matthew/Projects/aspnetcore-vue-starter/aspnetcore-vue-starter.csproj]
: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[0]
      User profile is available. Using '/Users/matthew/.aspnet/DataProtection-Keys' as key repository; keys will not be encrypted at rest.
fail: Microsoft.AspNetCore.NodeServices[0]
      events.js:183
fail: Microsoft.AspNetCore.NodeServices[0]
      events.js:183
fail: Microsoft.AspNetCore.NodeServices[0]
            throw er; // Unhandled 'error' event
fail: Microsoft.AspNetCore.NodeServices[0]
            ^
fail: Microsoft.AspNetCore.NodeServices[0]
            throw er; // Unhandled 'error' event
fail: Microsoft.AspNetCore.NodeServices[0]
            ^
fail: Microsoft.AspNetCore.NodeServices[0]
      Error: getaddrinfo ENOTFOUND localhost
fail: Microsoft.AspNetCore.NodeServices[0]
          at errnoException (dns.js:50:10)
fail: Microsoft.AspNetCore.NodeServices[0]
          at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)
fail: Microsoft.AspNetCore.NodeServices[0]
      Error: getaddrinfo ENOTFOUND localhost
fail: Microsoft.AspNetCore.NodeServices[0]
          at errnoException (dns.js:50:10)
fail: Microsoft.AspNetCore.NodeServices[0]
          at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:92:26)

When I run "npm -v" the result is 5.6.0, and when I run "dotnet --version" the result is 2.1.301

Any ideas? I'm on macOS, FWIW.

@MarkPieszak
Copy link
Member

Can you give it a shot with the latest published dotnet template (1.0.2)

dotnet new -i aspnetcore-vuejs (should be 1.0.2 now), this one has dotnet 2.1x SDK, that might be what's causing the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants