如果不小心只是单独卸载了node-red,可单独安装回来。
For Development - from GitHub
Running the code from GitHub is only intended for users who are happy to be usingdevelopment code, or for developers wanting to contribute to the code.
You can clone the source repository directly from GitHub:
git clone https://github.com/node-red/node-red.git
Once cloned, the core pre-requisite modules must be installed :
cd node-red
npm install
Note: when running from a clone of the git repository, it is necessaryto install all dependencies, not just the production level ones. This is why the
--production
option should not be used.
You will also need to install grunt-cli
in order to build the application beforeyou can use it. This must be done globally.
sudo npm install -g grunt-cli
You can then build and run the application
grunt build
node red