Closed Soonogo closed 1 year ago
Please add a lot more detail here. It really is not clear what problem you are having.
I want to add a local self-written node to nodered in flowforge, and I don't want to publish it
The simplest option is to:
npm pack
https://docs.npmjs.com/cli/v8/commands/npm-pack to create a tgz file for your custom nodeManage Palette
optionhttps://docs.npmjs.com/cli/v8/commands/npm-pack
If you are using the Docker or Kubernetes version of FlowForge, you can also build your own stack container.
i don't have this button
Can I run npm install ~/repos/nodered/nodes/create-chart
in the ~/.nodered directory to achieve the same effect
No, the FlowForge projects do not use the default Node-RED UserDir.
palette
option in the Template you are using?I'm using 2.2.2, run npm run install-stack --vers=2.2.2
, I can also upgrade it to above 3.0
pallet I only added exclude 10-file.js
You will need a Node-RED 3.0.x for the tgz upload button.
You will need to create a new stack (use bin/ff-install-stack.sh 3.0.2
in the FlowForge install directory), then create the stack under the Admin Settings.
I want to modify the source code of nodered after git clone, so how to modify the started nodered after the operation is my modification, not the nodered under /var/stacks
Now I run npm run install-stack --vers=3.0.2
, but still no button
Sorry, I screwed up, it was early this morning and I wasn't thinking. The tgz upload feature is explicitly disabled in FlowForge.
Let's start again. What problem are you actually trying to solve here:
For option 2 you can run the following command in the FlowForge directory.
npm install --prefix var/stacks/3.0.2 ~/repos/nodered/nodes/create-chart
This will install your node along side the Node-RED 3.0.2 that is used for the 3.0.2 stack.
it ran successfully,Thank you very much
Current Behavior
I run
npm i flowforge-nr-file-nodes
in flowforge , install my custom nodesExpected Behavior
it can be displayed here
Steps To Reproduce
No response
Environment