Node-RED 系列(1)-- Install

Premises: Nodejs

Steps to install Node.js

  1. Download install from the Node.js web site. LTS is recommended.

  2. Run the installer you downloaded

  3. Follow the prompts in the installer

    • Accept the license agreement
    • click the NEXT button a bunch of times and accept the default installation settings


      image.png

    Information
    Restart your computer. You won't be able to run Node.js until you restart your computer.

  4. Test it !

    • Make sure you have Node installed by running simple commands to see what version is installed:
    • Test Node. To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node --version && npm --version. This should print the version number so you should receive back output that looks similar to:
image.png

Steps to install Node-RED

This chapter gives specific instructions on setting up Node-RED in a Microsoft Windows environment. The instructions are specific to Windows 10 but should also work for windows7 and Windows Server from 2008R2.
It is not advisable to use versions prior to Windows 7 or Windows Server 2008R2

Information
Firstly set registry or proxy to use npm to download and install packages

  1. Install Node-RED

    • Installing Node-RED as a global module adds the command node-red to your system path.
    • Execute the following at the command prompt:
      npm install –g –unsafe-perm node-red
  2. Run Node-RED

    • Once installed, the simple way to run Node-RED is to use the node-red command in a command prompt: if you have installed Node-RED as a global npm package, you can use the node-red command:
      node-red
  3. Open browser, input localhost:1880 to go to the Node-Red flow page


    image.png
  4. Open browser, input localhost:1880/ui to go the Node-Red Dashboard page


    image.png

Information
You must keep the terminal open in order to keep Node-RED running. And if you want to always keep Node-Red running, using PM2
Node-RED 系列(8)-- Using PM2 to keep Node-RED running on Windows

Hope this can help you!

你可能感兴趣的:(Node-RED 系列(1)-- Install)