# Nr-lint does not emit warnings

**URL:** <https://discourse.nodered.org/t/nr-lint-does-not-emit-warnings/61293>\
**Category:** General\
**Created:** [14 April 2022 13:36 UTC](https://discourse.nodered.org/t/nr-lint-does-not-emit-warnings/61293 "2022-04-14T13:36:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![augjoh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/augjoh/32/26464_2.png) [@augjoh](https://discourse.nodered.org/u/augjoh)\
**Post date:** [14 April 2022 13:36 UTC](https://discourse.nodered.org/t/nr-lint-does-not-emit-warnings/61293/1 "2022-04-14T13:36:37Z")

</div>

When running `nr-lint` it seem to fail and does not emit any warnings/errors anymore.

```auto
`$ npx nrlint flows.json` `Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './conf/environments' is not defined by "exports" in /builds/platynum/certification-authority/flows/node_modules/@eslint/eslintrc/package.json` ` at new NodeError (node:internal/errors:371:5)` ` at throwExportsNotFound (node:internal/modules/esm/resolve:453:9)` ` at packageExportsResolve (node:internal/modules/esm/resolve:731:3)` ` at resolveExports (node:internal/modules/cjs/loader:482:36)` ` at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)` ` at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)` ` at Function.Module._load (node:internal/modules/cjs/loader:778:27)` ` at Module.require (node:internal/modules/cjs/loader:1005:19)` ` at require (node:internal/modules/cjs/helpers:102:18)` ` at Object.<anonymous> (/builds/platynum/certification-authority/flows/node_modules/eslint4b/dist/index-1a487e30.js:13:20) {` ` code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'` `}` `╔═══════════╤══════════╤═════════╤══════╗` `║ Object ID │ Severity │ Message │ Rule ║` `╚═══════════╧══════════╧═════════╧══════╝` `✖ 0 problems (0 errors, 0 warnings)`

```

But the command does not fail, the exit code is `0`. What has to be installed to get this command running again? Is it possible to detect this or similar errors in a shell script?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [14 April 2022 19:09 UTC](https://discourse.nodered.org/t/nr-lint-does-not-emit-warnings/61293/2 "2022-04-14T19:09:46Z")

</div>

We haven't published a new version of nrlint for some time. So when you say it isn't working anymore, do you have any idea what may have changed in the environment since it last worked for you?

---

<div class="post-metadata">

**Author:** ![augjoh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/augjoh/32/26464_2.png) [@augjoh](https://discourse.nodered.org/u/augjoh)\
**Post date:** [15 April 2022 06:23 UTC](https://discourse.nodered.org/t/nr-lint-does-not-emit-warnings/61293/3 "2022-04-15T06:23:04Z")

</div>

I assume, that this is triggered by an update of

```auto
├── @typescript-eslint/eslint-plugin@5.19.0
├── @typescript-eslint/parser@5.19.0

```

Nevertheless I would prefer, that `nr-lint` fails when it isn't working correctly.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 June 2022 06:23 UTC](https://discourse.nodered.org/t/nr-lint-does-not-emit-warnings/61293/4 "2022-06-14T06:23:43Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
