# Supported Node-RED Version in package.json

**URL:** https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097
**Category:** Developing Nodes
**Created:** [28 February 2022 09:06 UTC](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097 "2022-02-28T09:06:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![JsBergbau](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsbergbau/32/57534_2.png) [@JsBergbau](https://discourse.nodered.org/u/JsBergbau)
#### Post date: [28 February 2022 09:06 UTC](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097/1 "2022-02-28T09:06:51Z")

</div>

Hallo,

I've uploaded here a Node [node-red-contrib-sds011-dust-sensor (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-sds011-dust-sensor) and scorecard complains about missing Node-RED version.

package.json is

```auto
{
  "name": "node-red-contrib-sds011-dust-sensor",
  "version": "1.0.2",
  "description": "Node-RED node to enable a communication with the SDS011 sensor which is connected via UART/serial connection.",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor.git"
  },
  "dependencies": {
    "serialport": "^9.2.0"
  },
  "keywords": [
    "sds011",
    "pm",
    "pm2.5",
    "pm10",
    "sensor",
    "air",
    "smog",
    "particulates",
    "node-red",
    "airquality",
    "dust"
  ],
  "contributors": [
    "Ikhaya Inkomishi",
    "JsBergbau"
  ],
  "license": "GPL-3.0",
  "bugs": {
    "url": "https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor/issues"
  },
  "node-red": {
    "version": ">=2.0.0",
    "nodes": {
      "SDS011": "sds011-node/sds011-node.js"
    }
  },
   "engines": {
   "node": ">=12.0.0"
 },
  "homepage": "https://github.com/JsBergbau/node-red-contrib-sds011-dust-sensor#readme",
  "author": "Ikhaya Inkomishi"
}

```

According to [Packaging : Node-RED](https://nodered.org/docs/creating-nodes/packaging#packagejson) "version" must be put into the node-red section.  
Also there is a complain about missing engine section, but it is also present.

Can you help me to fix my package json so score card doesn't complain about these two?

---

<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: [28 February 2022 12:27 UTC](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097/2 "2022-02-28T12:27:45Z")

</div>

@JsBergbau Could you try your node against [node-red-dev - npm](https://www.npmjs.com/package/node-red-dev) and see what score you get?

---

<div class="post-metadata">

### Author: ![JsBergbau](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jsbergbau/32/57534_2.png) [@JsBergbau](https://discourse.nodered.org/u/JsBergbau)
#### Post date: [28 February 2022 14:42 UTC](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097/3 "2022-02-28T14:42:25Z")

</div>

I don't get a score like on the website, but here is the output of `node-red-dev validate`

```auto
 node-red-dev validate
    ---Validating Package---
   node-red-contrib-sds011-dust-sensor@1.0.2
✅ Package is GPL-3.0 licensed
✅ Repository/Bugs Link Supplied
 › Warning: P04 New Packages should use a scoped name
✅ Package uses a valid name
✅ No similar named packages found
✅ Node-RED Keyword Found
✅ Compatible with Node-RED v2.2.2
 › Warning: P06 NOT Compatible with Node-RED v1.3.7
✅ Compatible NodeJS Version found 12.0.0
    ---Validating Nodes---
✅ Nodes all have unique names
✅ Examples found for all nodes
    ---Validating Dependencies---
✅ Package has 1 dependencies
✅ No incompatible packages found in dependency tree
 › Warning: D03 serialport is not at latest version, package.json specifies: ^9.2.0, latest is: 10.3.0

```

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [1 March 2022 20:42 UTC](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097/4 "2022-03-01T20:42:48Z")

</div>

@JsBergbau - The scorecard is still being developed, and it's clear it does not always deliver accurate/consistent results, there are a number of anomalies.  
I realise that its disappointing when points are dropped, especially when other nodes gain points when they don't even meet the threshold! but I know a number of options are being considered, and hopefully this will be rectified soon.

---

<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: [30 April 2022 20:43 UTC](https://discourse.nodered.org/t/supported-node-red-version-in-package-json/59097/5 "2022-04-30T20:43:41Z")

</div>

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