hi please i need some help
I use this template
# Create a project folder and change into it mkdir myproject && cd myproject # Clone this repository into the project folder git clone https://github.com/sbarwe/node-red-template-embedded.git . # Install the pre-requisite modules (Express, Node-Red) npm install # Install some additional nodes if required ... #npm install node-red-contrib-xx node-red-contrib-yy --save # Start the server (runs 'node server.js') npm start
but when install any new nods from manage palette I see Error msg
but log in the debug mode
03/01/21, 10:14:14 [info] Installing module: node-red-dashboard, version: 2.28.1 03/01/21, 10:14:14 [debug] npm.cmd install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production email@example.com 03/01/21, 10:14:24 [debug] [out] + firstname.lastname@example.org 03/01/21, 10:14:24 [debug] [out] updated 1 package in 4.677s 03/01/21, 10:14:24 [debug] rc=0 03/01/21, 10:14:24 [info] Installed module: node-red-dashboard
so I back to guide
Installing Node-Red nodes
Node-Red nodes are installed as npm modules. With this project template, you have two options when installing new nodes.
- Project LevelMake sure you are in the main project folder and install using
npmas usual. Update your main project
package.jsonfile (or use
npm --save).This is the simplest approach and the one I use. However, it does mean that, if you want to run another node-red instance from the same project folder, you have to use the same installed modules.
- User LevelChange into your user folder (
./.noderedby default) before using
npm. You will need to do an
npm init -ythe first time as I haven't included a
package.jsonfile in that folder.This seems to me to be more complex to manage. However, it does have the advantage that you can use the project (optionally with some shared nodes installed) with multiple instances each with their own nodes or different versions of the same nodes.
- Developing node-red nodesIf you use the setup to isolate the development of a node-red node you should use
npm linkto link and install to and from your original development directory (e.g. a seperate git-repository). Use
npm run devto start the node-red instance with debugging features. See npm scripts for more information.