centos 에 nodejs, npm 설치하느라고 30분간 삽질한 후기.
1. 일단 tar 버전을 최신버전으로 컴파일한다. (http://firejune.com/1687?stag=tar 참고)
tar 버전을 1.26 으로 설치한다. 기존 설치된건 1.15 였다.
2. npm 을 설치한다.
% curl http://npmjs.org/install.sh | sh
에러발생
gzip: stdin: unexpected end of file
tar 버전을 1.26 으로 설치한다. 기존 설치된건 1.15 였다.
# w-get http://files1.directadmin.com/services/all/tar-1.26.tar.gz
# tar xvzf tar-1.26.tar.gz
# cd tar-1.26
# FORCE_UNSAFE_CONFIGURE=1
# export FORCE_UNSAFE_CONFIGURE
# ./configure
# make
# mv /bin/tar /bin/tar.old
# cp src/tar /bin/tar2. npm 을 설치한다.
% curl http://npmjs.org/install.sh | sh
에러발생
gzip: stdin: unexpected end of file
/usr/local/bin/tar: Child returned status 1
/usr/local/bin/tar: Error is not recoverable: exiting now
It failed
해결방법 : locale을 변경한다. (euckr 인 경우에 오류가 발생)
[root@localhost ~]# locale
해결방법 : locale을 변경한다. (euckr 인 경우에 오류가 발생)
[root@localhost ~]# locale
LANG=ko_KR.eucKR
LC_CTYPE="ko_KR.eucKR"
LC_NUMERIC="ko_KR.eucKR"
LC_TIME="ko_KR.eucKR"
LC_COLLATE="ko_KR.eucKR"
LC_MONETARY="ko_KR.eucKR"
LC_MESSAGES="ko_KR.eucKR"
LC_PAPER="ko_KR.eucKR"
LC_NAME="ko_KR.eucKR"
LC_ADDRESS="ko_KR.eucKR"
LC_TELEPHONE="ko_KR.eucKR"
LC_MEASUREMENT="ko_KR.eucKR"
LC_IDENTIFICATION="ko_KR.eucKR"
LC_ALL=
%export LANG=en_US.UTF-8
Written by John Gilmore and Jay Fenlason.
fetching: http://registry.npmjs.org/npm/-/npm-1.0.106.tgz
0.6.2
1.0.106
cleanup prefix=/usr/local
All clean!
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npm-g -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
/usr/local/bin/npm_g -> /usr/local/lib/node_modules/npm/bin/npm-cli.js
npm@1.0.106 /usr/local/lib/node_modules/npm
It worked
이제 제대로 설치되었다.
괜히 30분간 삽질했네.
이제 제대로 설치되었다.
괜히 30분간 삽질했네.
핵심) 설치시 오류나면 tar 버전을 확인후 최신 버전으로 업데이트
그래도 오류나면 locale 확인. UTF-8로 locale을 변경한다음 설치
댓글 4개
13년 전
yum 설치는 없는것 같네요.
요즘 다른거 배울게 많아서 node.js 는 패스합니다.
요즘 다른거 배울게 많아서 node.js 는 패스합니다.
13년 전
요즘 뭘 공부하시는지 궁금???????????????????
13년 전
jQuery 조금씩 보고 있습니다.
13년 전
설치한번 해봐야 하는데.....
진짜 짬이 없네요.
마음에 여유가 없어요
추천완료!!!!
진짜 짬이 없네요.
마음에 여유가 없어요
추천완료!!!!
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6027 | 9년 전 | 294 | ||
| 6026 | 9년 전 | 253 | ||
| 6025 | 9년 전 | 221 | ||
| 6024 | 9년 전 | 389 | ||
| 6023 | 9년 전 | 261 | ||
| 6022 | 9년 전 | 265 | ||
| 6021 | 9년 전 | 255 | ||
| 6020 | 9년 전 | 237 | ||
| 6019 | 9년 전 | 209 | ||
| 6018 | 9년 전 | 189 | ||
| 6017 | 9년 전 | 224 | ||
| 6016 | 9년 전 | 212 | ||
| 6015 | 9년 전 | 184 | ||
| 6014 | 9년 전 | 145 | ||
| 6013 | 9년 전 | 241 | ||
| 6012 | 9년 전 | 183 | ||
| 6011 | 9년 전 | 209 | ||
| 6010 | 9년 전 | 193 | ||
| 6009 | 9년 전 | 268 | ||
| 6008 | 9년 전 | 166 | ||
| 6007 | 9년 전 | 178 | ||
| 6006 | 9년 전 | 236 | ||
| 6005 | 9년 전 | 191 | ||
| 6004 | 9년 전 | 274 | ||
| 6003 | 9년 전 | 241 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기