# Nrlint install issues

**URL:** <https://discourse.nodered.org/t/nrlint-install-issues/48707>\
**Category:** General\
**Created:** [21 July 2021 11:21 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707 "2021-07-21T11:21:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joost](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@joost](https://discourse.nodered.org/u/joost)\
**Post date:** [21 July 2021 11:21 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707/1 "2021-07-21T11:21:23Z")

</div>

Hi! I'm having trouble getting the new nrlint to work with my newly updated NR 2.0.1 installation. I'm following the instructions as stated here [GitHub - node-red/nrlint: Node-RED Flow Linter](https://github.com/node-red/nrlint), but am not able to start my nodered after adding the require line into my settings.js.

Running Windows 10 and removing the line

```auto
        nrlint: require("./.nrlintrc.js"),

```

from my module.exports inside of the settings.js at least lets me start nodered again.

Any thoughts on what I am missing here?

```auto
PS C:\Users\joost\.node-red> node-red
Error loading settings file: \Users\j.kroes\.node-red\settings.js
C:\Users\joost\.node-red\.nrlintrc.js:1
��m

SyntaxError: Invalid or unexpected token
    at wrapSafe (internal/modules/cjs/loader.js:979:16)
    at Module._compile (internal/modules/cjs/loader.js:1027:27)
    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)
    at Object.<anonymous> (C:\Users\joost\.node-red\settings.js:488:17)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)

```

The line settings.js:488:17 refers to the start of the "require" in the nrlint export.

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [21 July 2021 12:46 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707/2 "2021-07-21T12:46:55Z")

</div>

Did you check the contents of `.nrlintrc.js`? I tripped over something similar yesterday, because the init command had failed due to a typo and the file contained the error message instead of the intended JS output. 🙈

---

<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:** [21 July 2021 13:04 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707/3 "2021-07-21T13:04:59Z")

</div>

> [@kuema](#):
>
> because the init command had failed due to a typo

Feel free to raise an issue so things like this can get fixed.

---

<div class="post-metadata">

**Author:** ![joost](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@joost](https://discourse.nodered.org/u/joost)\
**Post date:** [21 July 2021 13:07 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707/4 "2021-07-21T13:07:56Z")

</div>

Yeah, checked that.

To my utter surprise, linting now seems to be working, without the addition of the line in the settings.js. So either it is not needed there, or it is added automatically in the background (it is not currently in the settings.js file)?

Anyway, my flows are now showing linting in the admin ui at least, so that is something!

---

<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:** [21 July 2021 13:16 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707/5 "2021-07-21T13:16:13Z")

</div>

If you don't provide a settings file then the linter falls back to the defaults.

It wasn't always the case, hence the readme telling you to generate the file. Docs could do with an update.

---

<div class="post-metadata">

**Author:** ![kuema](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kuema/32/6542_2.png) [@kuema](https://discourse.nodered.org/u/kuema)\
**Post date:** [21 July 2021 13:32 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707/6 "2021-07-21T13:32:59Z")

</div>

> [@knolleary](#):
>
> Feel free to raise an issue so things like this can get fixed.

That mistake was on my end. I mistyped something after npx, so I redirected its usage info instead of the expected JS output into the `.nrlintrc.js` file. Stupid me. 😅

---

<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:** [19 September 2021 13:33 UTC](https://discourse.nodered.org/t/nrlint-install-issues/48707/7 "2021-09-19T13:33:04Z")

</div>

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