title: SpaTemplate angular - Publish to Azure - Error: Cannot find module 'aspnet-webpack'
body: <p>I use the asp.net core angular spatemplate. The project is running without problems on my local machine. However, when I publish it to azure I run into an internal server error.</p>
  
  <p>After setting the aspnetcore_environment to development in the azure portal, I can see a the error:</p>
  
  <blockquote>
    <p>Exception: Call to Node module failed with error: Webpack dev middleware failed because of an error while loading 'aspnet-webpack'. Error was: Error: Cannot find module 'aspnet-webpack'</p>
  </blockquote>
  
  <p>I found some hints here <a href="https://github.com/sgbj/generator-aspnetcore-angular2/issues/23" rel="nofollow noreferrer">https://github.com/sgbj/generator-aspnetcore-angular2/issues/23</a></p>
  
  <p>Basically it says the node_modules folder is missing in the production environment. And it describes a way to add it manually to the project.json file. But the spatemplate didn't create such a file... it contains a classic *.proj</p>
  
  <p>I am very new to web development and I don't know how to add the missing dependency to the proj file. And I am not sure if this is really the issue, because the sample I am following on the web <a href="https://channel9.msdn.com/events/Visual-Studio/Visual-Studio-2017-Launch/WEB-103" rel="nofollow noreferrer">https://channel9.msdn.com/events/Visual-Studio/Visual-Studio-2017-Launch/WEB-103</a> is not setting anything in this direction. </p>
  
  <p>If I create a plain new project with</p>
  
  <blockquote>
    <p>dotnet new angular</p>
  </blockquote>
  
  <p>and I publish it everything works fine without any issues?! So I have the feeling I destroyed something in the solution?! Any idea?</p>
  
  <p>My question is how can I set the node_modules for publishing? </p>