권형&오형의 일상

* centos6의 node, angular cli, git 설치 및 에러 본문

개발/ETC

* centos6의 node, angular cli, git 설치 및 에러

권형&오형 2018. 7. 12. 15:25

centos6에 node js 설치 

node version : https://nodejs.org/dist/

-> https://www.lesstif.com/pages/viewpage.action?pageId=17105412

-> gccc 버전이 낮을 경우 아래 참고

   gcc를 먼저 깔아야 하는데 centos6 기본버전이 4.4.7임 노드 컴파일 안됨. 이럴 때 devtoolset이용.

   -> https://www.softwarecollections.org/en/scls/rhscl/devtoolset-3/

   -> http://www.snoopybox.co.kr/1754

   (참고) gcc 환경변수 추가

   vi /etc/profile

   DEVTOOLSET=/opt/rh/devtoolset-3

   PATH=$DEVTOOLSET/root/usr/bin:$PATH


centos6에 npm 설치

-> rpm -qa | grep npm 혹은 npm

-> npm install check-node-version


centos6에 git 설치

-> centos6은 기존 git version이 1.7

   그래서 http protocol을 처리하지 못하는 버그가 있어서 1.8 이상 따로 깔아야됨.

-> https://www.lesstif.com/pages/viewpage.action?pageId=14745759

-> centos 6 git clone ssl connect error

   http://xbb123.tistory.com/71

   (인증절차 무시하는 옵션 : http://blog.whitelife.co.kr/248)


centos6에 angular설치 할때 Could not find module "@angular-devkit/build-angular" 에러나면

-> npm version < 5 

   npm cache clean

   npm install -g @angular/cli@latest

-> npm version 5.xx udpate 시

   npm uninstall -g @angular/cli

   npm cache verify

-> 그래도 안되면, 종속성 따로 설치하면됨. 

-> https://stackoverflow.com/questions/50333003/could-not-find-module-angular-devkit-build-angular




Comments