jessie에는 node-RED 라는 툴이 설치되있는데요
nodejs 기반이라 nodejs도 설치 되있습니다 (lite 제외)
일단 버전을 확인 해보죠
node -v
pi@rasp2-dev:~ $ node -v v0.10.29 |
근데 v0.10.29 라니 너무 낮네요
참고한 사이트는 node-arm 에서 제공하는 걸로 설치를 하네요
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
pi@rasp2-dev:~/utils $ wget http://node-arm.herokuapp.com/node_latest_armhf.deb --2017-03-26 01:05:36-- http://node-arm.herokuapp.com/node_latest_armhf.deb Resolving node-arm.herokuapp.com (node-arm.herokuapp.com)... 54.235.183.213 Connecting to node-arm.herokuapp.com (node-arm.herokuapp.com)|54.235.183.213|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 5617566 (5.4M) [application/x-debian-package] Saving to: ‘node_latest_armhf.deb’
node_latest_armhf.d 100%[=====================>] 5.36M 139KB/s in 26s
2017-03-26 01:06:02 (209 KB/s) - ‘node_latest_armhf.deb’ saved [5617566/5617566]
FINISHED --2017-03-26 01:06:02-- Total wall clock time: 27s Downloaded: 1 files, 5.4M in 26s (209 KB/s) |
다운을 받았으니 설치합니다
sudo dpkg -i node_latest_armhf.deb
pi@rasp2-dev:~/utils $ sudo dpkg -i node_latest_armhf.deb Selecting previously unselected package node. dpkg: regarding node_latest_armhf.deb containing node: nodejs-legacy conflicts with node node (version 4.2.1-1) is to be installed. node provides node and is to be installed.
dpkg: error processing archive node_latest_armhf.deb (--install): conflicting packages - not installing node Errors were encountered while processing: node_latest_armhf.deb |
근데 이미 node 가 설치되있다고 설치가 안먹히네요
기존 설치된 node를 제거합니다
설치 확인은 dpkg -l | grep node 로 확인하면 됩니다
제거는 sudo apt-get purge nodejs 정도면 됩니다
pi@rasp2-dev:~/utils $ dpkg -l | grep node ii nodejs 0.10.29~dfsg-2 armhf evented I/O for V8 javascript ii nodejs-legacy 0.10.29~dfsg-2 all evented I/O for V8 javascript (legacy symlink) ii nodered 0.15.2 armhf Node-RED flow editor for the Internet of Things
pi@rasp2-dev:~/utils $ sudo apt-get purge nodejs Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libc-ares2 libv8-3.14.5 Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: nodejs* nodejs-legacy* nodered* 0 upgraded, 0 newly installed, 3 to remove and 2 not upgraded. After this operation, 2,912 kB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 127416 files and directories currently installed.) Removing nodered (0.15.2) ... Removing nodejs-legacy (0.10.29~dfsg-2) ... Removing nodejs (0.10.29~dfsg-2) ... Processing triggers for gnome-menus (3.13.3-6) ... Processing triggers for desktop-file-utils (0.22-1) ... Processing triggers for mime-support (3.58) ... Processing triggers for gnome-icon-theme (3.12.0-1) ... Processing triggers for man-db (2.7.0.2-5) ... pi@rasp2-dev:~/utils $ |
* 복구는 sudo apt-get install nodejs nodejs-legacy nodered -y 정도면 될거에요
다시 설치
sudo dpkg -i node_latest_armhf.deb
pi@rasp2-dev:~/utils $ sudo dpkg -i node_latest_armhf.deb (Reading database ... 119538 files and directories currently installed.) Preparing to unpack node_latest_armhf.deb ... Unpacking node (4.2.1-1) ... Setting up node (4.2.1-1) ... Processing triggers for man-db (2.7.0.2-5) ... |
다시 버전확인
pi@rasp2-dev:~/utils $ node -v v4.2.1 |
4.2.1 이 설치됬네요
정식버전이 4니 나쁘지 않네요
참고로 node-red는 nodejs 삭제할때 같이 제거 되니 다시 설치하면 됩니다
전 안쓰니 설치하지 않았어요
참고
030. Raspberry Pi 라즈베리 파이 - Mysql 외부접속 허용 (0) | 2017.06.12 |
---|---|
029. Raspberry Pi 라즈베리 파이 - nodejs (Binary) 설치 (0) | 2017.04.17 |
027. Raspberry Pi 라즈베리 파이 - Apache2(v2.4.10) Tomcat 연동 (mod_jk) (0) | 2017.04.03 |
026. Raspberry Pi 라즈베리 파이 - Apache Tomcat 기본포트 변경 (8080 => 8089) (0) | 2017.03.27 |
025. Raspberry Pi 라즈베리 파이 - USB 외장하드 mount 마운트하기 (rc.local) (0) | 2016.08.29 |
댓글 영역