Npm install - missing node modules

I'm using a script to backup the .node-red directory MINUS the node_modules directory & contents (due to it's size), and writing up the restore process for when I need it.

Am I right in thinking that the process to rebuild the missing node_modules, would be;

cd .node-red && npm install

Which would enable npm to create the missing node_modules directory, and populate it with the required modules detailed in the package.json, or would the node_modules directory have to be created manually first?

Yup, that is correct. :slight_smile: You don't need to create the folder, it will be created by npm.

1 Like

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