npm install fails in jenkins pipeline in docker

前端 未结 12 940
野性不改
野性不改 2020-12-07 17:45

I\'m following a tutorial about Jenkins pipeline and I can get a \"hello world\" working under at node 6.10 docker container.

But, when I added a default EmberJS app

12条回答
  •  甜味超标
    2020-12-07 17:58

    Having wasted a whole day on this issue, I found simply adding the following as an environment variable at the agent stage using the Pipeline Editor removed the problem.

    'npm_config_cache=npm-cache'
    

提交回复
热议问题