Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: npm install in Jenkins Pipeline not Working (Webpack-Project)

HannesR:

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.



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: npm install in Jenkins Pipeline not Working (Webpack-Project)

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×