Jenkins上的`npm install`输出

不是一个大问题,但我已经注意到,jenkinsnpm install输出出来有点奇怪。

原来这是一个有颜色设置的问题:

  ** [out :: 96.126.118.103] [37m ** [out :: 96.126.118.103] [40m ** [out :: 96.126.118.103] npm ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] [32m ** [out :: 96.126.118.103] [40m ** [out :: 96.126.118.103] http ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] [35m ** [out :: 96.126.118.103] GET ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] https://registry.npmjs.org/coffee-script ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] [37m ** [out :: 96.126.118.103] [40m ** [out :: 96.126.118.103] npm ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] [32m ** [out :: 96.126.118.103] [40m ** [out :: 96.126.118.103] http ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] [35m ** [out :: 96.126.118.103] GET ** [out :: 96.126.118.103] [0m ** [out :: 96.126.118.103] https://registry.npmjs.org/mongoose 

清除颜色后,清理输出相当不错( npm config set color false )。 不幸的是,它仍然在名称之间添加换行符:

  ** [out :: 96.126.118.103] npm ** [out :: 96.126.118.103] ** [out :: 96.126.118.103] http ** [out :: 96.126.118.103] ** [out :: 96.126.118.103] GET ** [out :: 96.126.118.103] https://registry.npmjs.org/stylish ** [out :: 96.126.118.103] npm ** [out :: 96.126.118.103] ** [out :: 96.126.118.103] http ** [out :: 96.126.118.103] GET https://registry.npmjs.org/coffee-script 

有什么办法强制这些线路是他们通常显示的? 类似于它在控制台中的正常显示方式:

 npm http GET https://registry.npmjs.org/mongoose npm http GET https://registry.npmjs.org/jade npm http GET https://registry.npmjs.org/socket.io npm http GET https://registry.npmjs.org/coffee-script 

这不是一个大问题,但它确实使npm install疑难解答比问题出现时应该更难一些。

有什么build议么?

       

网上收集的解决方案 "Jenkins上的`npm install`输出"