# Nrlint install error

**URL:** https://discourse.nodered.org/t/nrlint-install-error/84731
**Category:** General
**Created:** [19 January 2024 13:17 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731 "2024-01-19T13:17:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [19 January 2024 13:17 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/1 "2024-01-19T13:17:10Z")

</div>

Hi all,

I´m trying to install nrlint to my NR (running on Windows10) according to the documentation ([https://github.com/node-red/nrlint](https://github.com/node-red/nrlint)).

But when I add the following to my settings.js, I´m unable to start node red.

```auto
module.exports = {
	// Add a `nrlint` entry pointing to your nrlint config file
    nrlint: require("./.nrlintrc.js"),
	
    // the tcp port that the Node-RED web server is listening on
    uiPort: process.env.PORT || 1880,
...

```

```auto
H:\>node-red
Error loading settings file: C:\Users\xxx\.node-red\settings.js
C:\Users\xxx\.node-red\.nrlintrc.js:1
��m

SyntaxError: Invalid or unexpected token
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1178:20)
    at Module._compile (node:internal/modules/cjs/loader:1220:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (C:\Users\xxx\.node-red\settings.js:23:13)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)

```

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [19 January 2024 13:24 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/2 "2024-01-19T13:24:06Z")

</div>

Hi,  
Did you create the `nrlintrc.js` file? with the following command in your node-red directory:

```bash
npx nrlint --init > .nrlintrc.js

```

If you open it what does it look like?

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [19 January 2024 13:25 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/3 "2024-01-19T13:25:20Z")

</div>

Yes, I did. Here is the content (the file is in the same folder as settings.js):

```auto
module.exports = {
    "rules": {
        "align-to-grid": true,
        "max-flow-size": true,
        "no-duplicate-http-in-urls": true,
        "no-loops": true,
        "no-overlapping-nodes": true,
        "no-unconnected-http-nodes": true,
        "no-unnamed-functions": true,
        "no-unnamed-links": true,
        "function-eslint": {
            "config": {
                "env": {
                    "es2021": true
                },
                "parserOptions": {
                    "ecmaVersion": 12
                },
                "rules": {
                    "constructor-super": "error",
                    "for-direction": "error",
                    "getter-return": "error",
                    "no-async-promise-executor": "error",
                    "no-case-declarations": "error",
                    "no-class-assign": "error",
                    "no-compare-neg-zero": "error",
                    "no-cond-assign": "error",
                    "no-const-assign": "error",
                    "no-constant-condition": "error",
                    "no-control-regex": "error",
                    "no-debugger": "error",
                    "no-delete-var": "error",
                    "no-dupe-args": "error",
                    "no-dupe-class-members": "error",
                    "no-dupe-else-if": "error",
                    "no-dupe-keys": "error",
                    "no-duplicate-case": "error",
                    "no-empty": "error",
                    "no-empty-character-class": "error",
                    "no-empty-pattern": "error",
                    "no-ex-assign": "error",
                    "no-extra-boolean-cast": "error",
                    "no-extra-semi": "error",
                    "no-fallthrough": "error",
                    "no-func-assign": "error",
                    "no-global-assign": "error",
                    "no-import-assign": "error",
                    "no-inner-declarations": "error",
                    "no-invalid-regexp": "error",
                    "no-irregular-whitespace": "error",
                    "no-misleading-character-class": "error",
                    "no-mixed-spaces-and-tabs": "error",
                    "no-new-symbol": "error",
                    "no-obj-calls": "error",
                    "no-octal": "error",
                    "no-prototype-builtins": "error",
                    "no-redeclare": "error",
                    "no-regex-spaces": "error",
                    "no-self-assign": "error",
                    "no-setter-return": "error",
                    "no-shadow-restricted-names": "error",
                    "no-sparse-arrays": "error",
                    "no-this-before-super": "error",
                    "no-undef": "error",
                    "no-unexpected-multiline": "error",
                    "no-unreachable": "error",
                    "no-unsafe-finally": "error",
                    "no-unsafe-negation": "error",
                    "no-unused-labels": "error",
                    "no-unused-vars": "error",
                    "no-useless-catch": "error",
                    "no-useless-escape": "error",
                    "no-with": "error",
                    "require-yield": "error",
                    "use-isnan": "error",
                    "valid-typeof": "error"
                }
            }
        }
    }
}

```

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [19 January 2024 13:33 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/4 "2024-01-19T13:33:43Z")

</div>

There is no error in the content you posted. Is there something before `module.exports` in the file?

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [19 January 2024 13:39 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/5 "2024-01-19T13:39:11Z")

</div>

No.  
[.nrlintrc - Kopie.txt](https://discourse.nodered.org/uploads/short-url/nRNBz7B0B5jHtTss4dZu0BDHram.txt) (6.8 KB)  
[settings - Kopie.txt](https://discourse.nodered.org/uploads/short-url/q8lEP6BPFkJi2C7DGayUXhzW98B.txt) (12.2 KB)

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [19 January 2024 13:46 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/6 "2024-01-19T13:46:39Z")

</div>

As it stands, I don't see anything broken 🤔

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 January 2024 17:21 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/7 "2024-01-19T17:21:06Z")

</div>

When I open .nrlintrc with nano I see

```auto
��m^@o^@d^@u^@l^@e^@.^@e^@x^@p^@o^@r^@t^@s^@ ^@=^@ ^@{^@
^@
^@ ^@ ^@ ^@ ^@"^@r^@u^@l^@e^@s^@"^@:^@ ^@{^@
...

```

So it appears not to be 8 bit encoded, which I suspect is the problem. What tool did you use to create it?

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [22 January 2024 06:41 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/8 "2024-01-22T06:41:57Z")

</div>

I used windows 10 standard editor to create this file.

EDIT: opened the file with notepad++ and saved as UTF-8 solved the problem! Thanks!

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [22 January 2024 10:48 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/9 "2024-01-22T10:48:40Z")

</div>

Me again!

NR is running now, also the "lint" tab is visible, but there seems to be no function.  
Shouldn´t it recognize loops and so on? How can I check if lint works correctly?

 ![2024-01-22 11_47_56-Window](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/6/4636a7221bb277fabe72bb9b80df27b50b655ee2.png)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [22 January 2024 11:15 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/10 "2024-01-22T11:15:08Z")

</div>

Have you checked settings?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/a/9a5221c07aa458292863ce2881a9ea23bac4e9e8.png)

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [22 January 2024 11:24 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/11 "2024-01-22T11:24:41Z")

</div>

Yes. It seems lint is not working, I have some rule violations, but nothing shows up.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0c82436a7869c8d784af0e904c06028b6c1d21b4.png)

---

<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: [22 January 2024 11:33 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/12 "2024-01-22T11:33:39Z")

</div>

Can you check the browser's JavaScript Console for any error messages?

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [22 January 2024 11:46 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/13 "2024-01-22T11:46:22Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/549bf2c78722fb274b85685c764aa1c063a58434.png)

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [23 January 2024 08:04 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/14 "2024-01-23T08:04:35Z")

</div>

No one? I tried to install nrlint also on a raspberry pi (all is up to date), but it seems to also not work! Same behaviour as on windows machine, lint tab is available but none of the rule violations are reported.

Am I missing some important step?

EDIT: (NR 3.1.3 - NRLINT 1.1.0 - Node18)

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [23 January 2024 08:46 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/15 "2024-01-23T08:46:56Z")

</div>

I confirm,  
The Plugin has been loaded, the sidebar added but it is not triggered.  
I don't have any errors in the console.  
(NR 3.1.3 - NRLINT 1.1.0 - Node20)

@knolleary Works with v3.1.0 but anymore with the v3.1.1

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [26 January 2024 07:42 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/16 "2024-01-26T07:42:04Z")

</div>

@knolleary would you have a look on this, please?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [26 January 2024 08:17 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/17 "2024-01-26T08:17:44Z")

</div>

> [@GogoVega](#):
>
> (NR 3.1.3 - NRLINT 1.1.0 - Node20)
> 
> @knolleary Works with v3.1.0 but anymore with the v3.1.1

I am running v3.1.3 and it works for me.

> [@Steve-Mcl](#):
>
> image924×448 29.4 KB

However, I am using Node V18.19.0

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [26 January 2024 10:20 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/18 "2024-01-26T10:20:46Z")

</div>

Strange, I can no longer create the behavior 🤔

---

<div class="post-metadata">

### Author: ![protonmw](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@protonmw](https://discourse.nodered.org/u/protonmw)
#### Post date: [26 January 2024 10:53 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/19 "2024-01-26T10:53:26Z")

</div>

just to be clear, is there any service that needs to be started besides NR?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/a/eaa56f4fbe5322c4ffa28cc6ab929628dde5a5db.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/9/29354f139bea6b5afb68fbcd954e9d58d2a9a986.png)

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [26 January 2024 11:28 UTC](https://discourse.nodered.org/t/nrlint-install-error/84731/20 "2024-01-26T11:28:43Z")

</div>

> [@protonmw](#):
>
> is there any service that needs to be started besides NR

No. NRLint is started as a web worker (and by the looks of your console, it _is_ starting!)

Please raise an issue here: [Issues · node-red/nrlint · GitHub](https://github.com/node-red/nrlint/issues)

Link back to this thread and include as much info as possible.

Ta.

[Next page](https://discourse.nodered.org/t/nrlint-install-error/84731.md?page=2)
