Does project's package.json need node red dependency?

Got into an argument with AI about project's package.json haha. It currently includes node-red (with version) as dependency. But the AI claims that it could create a duplicate copy, and that node-red should only be declared in node red root folder's package.json as dependency.

I assumed the project's package.json was auto-generated and correct. But did a mistake happen and this shouldn't also include node-red as dep?

Hi @ThingsTinkerer

In my experience, I have never needed to included Node RED as a dependancy itself

There is one exception, if developing a Node RED Node, in typescript - I do including Node RED typings - but Evan that is Out of Date (I think)

So, IMO - Others may suggest otherwise - No - it's not needed, even developing a Node in most cases., it serves very little purpose

2 Likes

Ok thanks was worried I got gaslighted by AI (again :laughing:)

1 Like