설치시 에러 발생 할 경우

 

To install Node-RED v3.x for the user administrator on Raspbian, you can follow these steps:

  1. Open the terminal on your Raspbian system.
  2. Run the command sudo apt update to update the package list.
  3. Run the command sudo apt upgrade to upgrade the installed packages.
  4. Install the required dependencies by running the command sudo apt install build-essential git curl.
  5. Install the latest version of Node.js (which is currently Node.js 16) by running the command curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - followed by sudo apt-get install -y nodejs.
  6. Install Node-RED by running the command sudo npm install -g --unsafe-perm node-red.
  7. If you want to force the installation of Node.js 14 or 18 instead of Node.js 16, you can add the --node14 or --node18 parameter to the above command.
  8. If you want to stay on Node.js 12, you can install the latest version of Node-RED 2.x by running the command sudo npm install -g --unsafe-perm node-red@2.2.2.
  9. If you encounter any issues with nodes not working after upgrading, you may need to manually update them to their latest versions.
  10. Before upgrading, it's always recommended to backup your installation and flows to ensure that you don't lose any important data.

 

--------------------------------------------

 

사용자 administrator의 Raspbian 시스템에 Node-RED v3.x를 설치하려면 다음 단계를 따를 수 있습니다:

  1. Raspbian 시스템에서 터미널을 엽니다.
  2. 패키지 목록을 업데이트하기 위해 명령어 'sudo apt update'를 실행합니다.
  3. 설치된 패키지를 업그레이드하기 위해 명령어 'sudo apt upgrade'를 실행합니다.
  4. 필요한 종속성을 설치하기 위해 명령어 'sudo apt install build-essential git curl'을 실행합니다.
  5. 현재 Node.js 16인 가장 최신 버전을 설치하기 위해 명령어 'curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -'를 실행한 후 'sudo apt-get install -y nodejs'를 실행합니다.
  6. 명령어 'sudo npm install -g --unsafe-perm node-red'를 실행하여 Node-RED를 설치합니다.
  7. Node.js 16 대신 Node.js 14 또는 18을 강제로 설치하려면 위 명령어에 '--node14' 또는 '--node18' 매개변수를 추가할 수 있습니다.
  8. Node.js 12를 사용하려면 명령어 'sudo npm install -g --unsafe-perm node-red@2.2.2'를 실행하여 Node-RED 2.x의 최신 버전을 설치할 수 있습니다.
  9. 업그레이드 후 노드가 작동하지 않는 문제가 발생하면 최신 버전으로 수동으로 업데이트해야 할 수 있습니다.
  10. 업그레이드하기 전에 중요한 데이터가 손실되지 않도록 설치 및 흐름을 백업하는 것이 좋습니다.
Posted by 꼬토
,