Hi,
I am trying to create a node in DietPi.
To install the node I need to run npm install
in ~/.node-red
. But, I can't see such a folder.
How should I proceed?
Thanks.
Hi,
I am trying to create a node in DietPi.
To install the node I need to run npm install
in ~/.node-red
. But, I can't see such a folder.
How should I proceed?
Thanks.
The DietPi setup is a bit different to the normal setup we provide - I can't remember the specifics of where it puts the user directory.
When Node-RED starts it logs the full path to the user directory it is using - see what it says.
Here is the log.
19 Oct 10:25:32 - [info] Settings file : /mnt/dietpi_userdata/node-red/settings.js
19 Oct 10:25:32 - [info] Context store : 'default' [module=memory]
19 Oct 10:25:32 - [info] User directory : /mnt/dietpi_userdata/node-red
19 Oct 10:25:32 - [warn] Projects disabled : editorTheme.projects.enabled=false
19 Oct 10:25:32 - [info] Flows file : /mnt/dietpi_userdata/node-red/flows.json
19 Oct 10:25:32 - [info] Creating new flow file
19 Oct 10:25:32 - [warn]
So I should run npm install
in /mnt/dietpi_userdata/node-red
?
Yes - that is your user directory where your settings file lives and where you install nodes.
Thanks @knolleary.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.