# 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
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 npm as usual. Update your main project package.json file (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 ( ./.nodered by default) before using npm . You will need to do an npm init -y the first time as I haven't included a package.json file 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 link to link and install to and from your original development directory (e.g. a seperate git-repository). Use npm run dev to start the node-red instance with debugging features. See npm scripts for more information.
when check this file .config.json
I Discovred all installed new nodes its missing in this config file whay not add it Automaticaly!
so I add it manualy but not work again, Issus no solved
so i check the config file one more and all my new line code its deleted
whay when Start node-red server its delete my new config and back to Defautl config whay this !
ok I updated some IDs
i installed nodes with npm cmd
cd $poject/.nodered
npm install <npm-package-name>
Installed package but anything in dashboard
cd $poject/.nodered
npm install <npm-package-name> --save
Installed package but anything in dashboard
so i changed PATH and last cmd its:
cd $poject/
npm install <npm-package-name> --save
its works
so i changed prefex into installer.js
D:\Project\node-red-template-embedded\node_modules\@node-red\registry\lib\installer.js
prefix=~
to
D:\Project\node-red-template-embedded\node_modules\
var args = ['install','--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix=D:\\Project\\node-red-template-embedded','--production',installName];
and start node-red server
install new package to test
but show MSG Error Log in dashboard
so restart server and load dashboard if any change
but nothing changed issus is still I cant show new installed package in dashboard
else installed manually from CLI
any id to resolve this please
The .config.nodes.json (or .config.json if you are on an old version of NR) file is not a file you edit. It contains a record of what the runtime has found when loading the palette of nodes.
I can't immediately see why this isn't working for you. I know you've just raised an issue against Node-RED for this - but this is not a core issue. If anything, it will be an issue with the template you are starting with.
Is there a reason you are using that template rather than doing a normal install of Node-RED?
but same issuse i cant add anything - node-red events log Error
and worked for me only with this way
so i changed PATH and last cmd its:
cd $poject/
npm install <npm-package-name> --save
its works
so i changed prefex into installer.js
D:\Project\node-red-template-embedded\node_modules\@node-red\registry\lib\installer.js
prefix=~
to
D:\Project\node-red-template-embedded\node_modules\
var args = ['install','--no-audit','--no-update-notifier','--no-fund','--save','--save-prefix=D:\\Project\\node-red-template-embedded','--production',installName];
and start node-red server
install new package to test
but show MSG Error Log in dashboard
so restart server and load dashboard if any change
but nothing changed issus is still I cant show new installed package in dashboard
else installed manually from CLI
any id to resolve this please