这不是一个大问题,但我注意到Jenkins的npm 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
的问题比问题出现时更加困难。
有什么建议吗?