I am trying to deploy a new jHipster application to Tomcat using version 6.1.0. A previous app using older versions worked just fine. I changed my pom.xml to generate a war instead of a jar file. If I run the war file as "java -jar app.war" it works fine, but if I deploy the war file to Tomcat my browser shows error message related to npm.
I have tried both app.war and app.war.original. I have set my baseHref in webpack.common.js to match my context name.
Here is the browser response:
An error has occurred :-( Usual error causes You started the application from an IDE and you didn't run npm start or npm run webpack:build. You had a network error while running npm install. If you are behind a corporate proxy, it is likely that this error was caused by your proxy. Have a look at the JHipster error logs, you will probably have the cause of the error. You installed a Node.js version that doesn't work with JHipster: please use an LTS (long-term support) version, as it's the only version we support. Building the client side code again If you want to go fast, run ./mvnw to build and run everything.
If you want to have more control, so you can debug your issue more easily, you should follow the following steps:
...