Reputation: 21
I am deploying my first asp.net core website. We are using NPM to manage packages from a dev perspective, but I was not under the impression that would make node js a requirement on the server hosting the website?
Right now, I'm getting "InvalidOperationException: Failed to start Node process" if I try to run the website. In an effort to keep the server as lean as possible, I would prefer not having node js on there. Plus, I have a concern it will try to update / download packages at runtime rather than include them when I deploy (from Visual Studio 2017 deploy to file option).
Upvotes: 2
Views: 2025
Reputation: 1536
The feature that is causing this problem is "Server Side Rendering". It can be disabled by removing:
@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
From Views/_ViewImports.cshtml
See this stack SO question for more details.
How to disable server side rendering on an asp.netcore-spa application?
Upvotes: 1