설치시 에러 발생 할 경우
To install Node-RED v3.x for the user administrator on Raspbian, you can follow these steps:
- Open the terminal on your Raspbian system.
- Run the command sudo apt update to update the package list.
- Run the command sudo apt upgrade to upgrade the installed packages.
- Install the required dependencies by running the command sudo apt install build-essential git curl.
- 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.
- Install Node-RED by running the command sudo npm install -g --unsafe-perm node-red.
- 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.
- 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.
- If you encounter any issues with nodes not working after upgrading, you may need to manually update them to their latest versions.
- 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를 설치하려면 다음 단계를 따를 수 있습니다:
- Raspbian 시스템에서 터미널을 엽니다.
- 패키지 목록을 업데이트하기 위해 명령어 'sudo apt update'를 실행합니다.
- 설치된 패키지를 업그레이드하기 위해 명령어 'sudo apt upgrade'를 실행합니다.
- 필요한 종속성을 설치하기 위해 명령어 'sudo apt install build-essential git curl'을 실행합니다.
- 현재 Node.js 16인 가장 최신 버전을 설치하기 위해 명령어 'curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -'를 실행한 후 'sudo apt-get install -y nodejs'를 실행합니다.
- 명령어 'sudo npm install -g --unsafe-perm node-red'를 실행하여 Node-RED를 설치합니다.
- Node.js 16 대신 Node.js 14 또는 18을 강제로 설치하려면 위 명령어에 '--node14' 또는 '--node18' 매개변수를 추가할 수 있습니다.
- Node.js 12를 사용하려면 명령어 'sudo npm install -g --unsafe-perm node-red@2.2.2'를 실행하여 Node-RED 2.x의 최신 버전을 설치할 수 있습니다.
- 업그레이드 후 노드가 작동하지 않는 문제가 발생하면 최신 버전으로 수동으로 업데이트해야 할 수 있습니다.
- 업그레이드하기 전에 중요한 데이터가 손실되지 않도록 설치 및 흐름을 백업하는 것이 좋습니다.
'유용한 정보 > IT 관련' 카테고리의 다른 글
키보드 윈도우키 미동작시 (0) | 2023.08.07 |
---|---|
라즈베리파이 3+ node-red 자동실행 방법 (0) | 2023.04.14 |
로지텍 콤보터치 관련 (0) | 2022.10.30 |
DB 유지보수 관련 프로그램 (0) | 2021.01.08 |
(ME-Y30K ) LTE 라우터 SKT 사용하기 (1) | 2020.10.26 |