TrilonIO / aspnetcore-Vue-starter

*NEW* Asp.net Core & Vue.js (ES6) SPA Starter kit - Vuex, webpack, Web API, Docker, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.22k stars 266 forks source link

dotnet run fails #100

Open mrbelk opened 6 years ago

mrbelk commented 6 years ago

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 commented 6 years ago

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!