Question about package.json and project

Hi,

I have package.json in my root with a different version for
node-red-node-sqlite": "^0.4.4"
then the package.json in projects\test
"node-red-node-sqlite": "0.4.1",

Do i have to sync this, why is this another version then the one in the root?

{
  "name": "node-red-project",
  "description": "A Node-RED Project",
  "version": "0.0.1",
  "dependencies": {
    "node-red-contrib-advanced-ping": "~1.2.0",
    "node-red-contrib-cast": "~0.2.15",
    "node-red-contrib-castv2": "~3.2.3",
    "node-red-contrib-fs-ops": "~1.5.0",
    "node-red-contrib-google-home-notify-volume-adjustable": "0.0.10",
    "node-red-contrib-ip": "~1.0.1",
    "node-red-contrib-moment": "~3.0.3",
    "node-red-contrib-nora": "0.0.34",
    "node-red-contrib-play-audio": "~2.5.0",
    "node-red-contrib-queue-gate": "~1.4.0",
    "node-red-contrib-repeat": "0.0.27",
    "node-red-contrib-simpletime": "~2.10.0",
    "node-red-contrib-sonos-plus": "~4.1.3",
    "node-red-contrib-time-switch": "~1.0.8",
    "node-red-contrib-unifi": "~0.1.15",
    "node-red-contrib-web-worldmap": "~2.5.3",
    "node-red-dashboard": "~2.23.3",
    "node-red-node-base64": "~0.2.1",
    "node-red-node-email": "~1.7.9",
    "node-red-node-ping": "~0.2.1",
    "node-red-node-pushover": "0.0.20",
    "node-red-node-rbe": "~0.2.9",
    "node-red-node-sqlite": "^0.4.4",
    "node-red-node-timeswitch": "0.0.7",
    "node-red-node-ui-list": "~0.3.1",
    "node-red-node-ui-table": "~0.3.5"
  }
}

{
    "name": "test",
    "description": "test",
    "version": "0.0.1",
    "dependencies": {
        "node-red-contrib-cast": "0.2.14",
        "node-red-contrib-castv2": "2.0.3",
        "node-red-contrib-fs-ops": "1.5.0",
        "node-red-contrib-ip": "0.1.0",
        "node-red-contrib-moment": "3.0.3",
        "node-red-contrib-nora": "0.0.33",
        "node-red-contrib-repeat": "0.0.27",
        "node-red-contrib-sonos-plus": "1.4.0",
        "node-red-dashboard": "2.19.4",
        "node-red-node-base64": "0.2.0",
        "node-red-node-email": "1.7.7",
        "node-red-node-pushover": "0.0.17",
        "node-red-node-sqlite": "0.4.1",
        "node-red-node-ui-list": "0.2.5",
        "node-red-node-ui-table": "0.3.5",
        "node-red-contrib-queue-gate": "1.4.0"
    },
    "node-red": {
        "settings": {
            "flowFile": "test.json",
            "credentialsFile": "test_cred.json"
        }
    }
}

The one in the project reflects the version you had when you added it to your project.

At the moment, Node-RED doesn't update the project's package.json when you upgrade a node. The whole area of dependency management within projects needs some work.

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