The rebuilding nodes in the electron Node-RED #50
kazuhitoyokoi
started this conversation in
Design Proposals
Replies: 1 comment 2 replies
-
For the whole electron app - is it really using the existing ~/.node-red directory ? Are we really expecting users to be able to swap between electron use and an existing install ? How would they swap back ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As we talked about in the pull request, the electron version of Node-RED needs to rebuild nodes that have version-specific binary because the binary is incompatible between Node.js in the Electron and normal Node.js which is installed in the local machine. In this discussion, I would like to clarify the timing when the rebuilding process is needed. In my understanding, there are two cases as follows.
When a user changes the environment from normal Node-RED to Election Node-RED, there may be some existing nodes that the user installed using the normal Node-RED environment. In this case, the Electron version of Node-RED needs to rebuild all of the existing nodes before starting Node-RED.
When a user installs a new node in the Electron Node-RED environment, the installed node requires rebuilding for the electron environment.
The pre/postInstall hook is for the case 2 only. Therefore, we need to consider case 1.
Beta Was this translation helpful? Give feedback.
All reactions