发生警告时如何使npm失败?

I'm building a npm package and want to detect warnings raised by npm on CI. However, npm's exit status is zero even if warnings are displayed unless there's an error. Is there any option to make npm install fail when any warning occurs? Or any other way to detect warnings?