Open elcreator opened 3 years ago
NODE_OPTIONS="--trace-warnings" pm2-zabbix --discover
(node:9350) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
at emitCircularRequireWarning (internal/modules/cjs/loader.js:650:11)
at Object.get (internal/modules/cjs/loader.js:664:5)
at Object._register [as register] (/root/.nvm/versions/node/v14.15.4/lib/node_modules/pm2-zabbix/node_modules/shelljs/src/common.js:455:12)
at Object.<anonymous> (/root/.nvm/versions/node/v14.15.4/lib/node_modules/pm2-zabbix/node_modules/shelljs/src/cat.js:4:8)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
pm2-zabbix/node_modules/shelljs/src/common.js
455 line
// if (shell[name] && !wrapOptions.overWrite) {
// throw new Error('unable to overwrite ' + name + '
command');
// }
I have single file .nvm/versions/node/v14.15.4/bin/pm2-zabbix without node_modules in the same directory
~# node -v
v14.15.4
I have Zabbix 5.0.4. Can't use pm2-zabbix due to the next problem:
~# pm2-zabbix --discover