
[英]Jenkins build on Windows Server 2012 failing due to node-gyp, works from command line
[英]Jenkins build failing
我不得不在我的应用程序中将 angular 版本从 5 升级到 8。 但升级后 Jenkins 构建失败。 我收到错误消息,说我需要将 node.js 升级到 v10.9 或更高版本。 但是我已经在我的系统中使用了 nodejs 版本 10.16.3。 所以,我想知道我需要在哪里升级nodejs?
您必须在 Jenkins 服务器系统中安装最新/升级版本。 您可以在构建作业中包含这些命令 -
npm i -g npm@latest
npm i node@latest
只需在您的 Jenkins slave(s) 中执行以下命令。
# Clean the cache
sudo npm cache clean
# Remove the old one
sudo npm remove -g @angular/cli
# Install angular 8.0.2
sudo npm install -g @angular/cli@8.0.2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.