prometheus npm prom-client编译失败

时间:2019-05-08 11:41:37

标签: prometheus prom-client

我正在尝试将普罗米修斯集成到我的项目中,但是在const Prometheus = require('prom-client')上遇到编译问题

它抱怨:

Failed to compile.

./node_modules/prom-client/lib/cluster.js
Module not found: Can't resolve 'cluster' in '/Users/mkumar/Documents/development/workspace/platform-ui/node_modules/prom-client/lib'

0 个答案:

没有答案