Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-red nodes installed through npm install are lost when restarting/redeploying the node-red containers #6

Open
janvda opened this issue Nov 22, 2018 · 3 comments

Comments

@janvda
Copy link
Owner

janvda commented Nov 22, 2018

E.g. in a Node-RED container I have installed node-red-contrib-math by entering the following command
npm install bartbutenaers/node-red-contrib-math

This did successfully install the math node but when I restarted the container, I noticed that this node was no longer installed.

@janvda janvda changed the title node-red nodes installed are lost when restarting the node-red container node-red nodes installed are lost when restarting/redeploying the node-red containers Nov 22, 2018
@janvda janvda changed the title node-red nodes installed are lost when restarting/redeploying the node-red containers node-red nodes installed through npm install are lost when restarting/redeploying the node-red containers Nov 22, 2018
@janvda
Copy link
Owner Author

janvda commented Dec 12, 2018

In order to assure that nodes installed through npm install are not lost after a restart of the container, you must assure that they are installed in the \data directory. So you must first do a cd \data and then execute the npm install .... command. This will assure that the node is correctly installed under folder \data\node_modules\ and that it will persist after restarts of the container.

@diverjoe
Copy link

I added the nodes I knew I wanted to the dockerfile in Node-red. and it worked great - now I dont have to worry about them disappearing.

@janvda
Copy link
Owner Author

janvda commented Jan 29, 2019

I have also documented this in the readme under commit f1ef577

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants