diff --git a/lib/agent.js b/lib/agent.js index 7b5563e..8a1cbca 100644 --- a/lib/agent.js +++ b/lib/agent.js @@ -265,7 +265,7 @@ class Agent { } if (this.launcher?.readPackage) { const { modules } = this.launcher.readPackage() - if (!!semver.valid(modules['node-red'])) { + if (semver.valid(modules['node-red']) !== null) { state.nodeRedVersion = modules['node-red'] } else { try {