Once the jhipster app is deployed to GCP the web site says:
An error has occurred :-(.
It is the error you get when you run "mvnw", but not "npm start".
I create a monolithic Spring and Angular 8 application with jhipster 6.2.0.
I run the "jhipster gae" command and answer the prompts.
I run the "./mvnw appengine:deploy -DskipTests -Pprod,prod-gae" command on my Ubuntu 18.0.4 OS.
It deploys successfully, kind of. I don't get any errors on the command prompt, but when I get to the URL I get the message, "An error has occurred :-(".
It basically says that I didn't run "npm start". So it is like it ran "mvnw", but not "npm start".
Related
I'm trying to deploy a Node.js (Remix) application to an Azure App Service instance. After installing the npm packages, the post-install script must run for the Remix app to eventually work. The post-install script is npx remix setup node.
Unfortunately, the deployment fails because of the following reason:
npm ERR! could not determine executable to run
I get the same error when trying to use other npx commands, as npx prisma generate. I tried npm exec as well instead of npx.
Thank you in advance!
In startup command try using npx serve -s build/
Also, under your app service Settings blade check all the general settings.
Make sure that your web.config was published along with your app.
Application is not deployed to jenkins. error in logs:
the solution is possible in the "npm cache clear --force", but where to enter it, should the developer do it? or I, devops, in jenkins?
I am trying to set environment for ReactJS in my Ubuntu 18.04 and I followed this link instructions. After installation used command 'start npm' (as instructed in the link) in terminal to start but getting this error(see the img). After this I updated node.js and npm even after this I'm getting the same error. I'm beginner in UI Development.
error I am getting
Probably you have to cd into the project folder created and then run the command npm start. if the error prevails then check the package.json file for start command
"scripts": {
"start": ""
}
I have a jenkins pipeline and a NPM/Webpack project. My Jenkins server is running on a Windows Server 2016 1607 - I got the newest Jenkins release.
I want to deploy the project via Jenkins.
One of the first steps is, to install the dependencies:
echo "Run Webpack"
dir("static") {
bat "npm install"
echo "Build for Dev"
bat "npm run build:dev"
}
When the pipeline is at this step there is a loop and i dont see a progress or something like that:
I can wait for 30 minutes and there appears nothing. I dont know what to do.
Note: When i go via cmd to this path and run "npm install" everything works fine. This is only a problem with Jenkins.
I hope that someone knows a workaround or have an idea how to do this in another way.
Solved: Sorry for the question. Now after a few tries npm throws an error message. The problem was, that my server wasn't able to connect to the internet through our firewall.
I never thaught that this was the problem because on the local machine "npm install" works. But on the local machine it seems that NPM used our proxy server. That was the reason why it works locally and not with jenkins.
I've just installed nodejs and angular CLI successfully, but when I tried to create(with ng new, running the git bash with admin privileges) my first(and then second) app I got an error(same error twice: one for each new app):
Image with the error
Using windows 10, 64bit
Ok you are doing it with npm, I had faced the same error. It is due to the privileges in your system. you can run npm cache clean and try.
If that still doesnt work I suggest you try it with yarn.