Node.js와 npm 실행 시 icu4c 오류 (Reason: image not found)

Yuri Lee·2020년 11월 29일
0

배경

git 에 올려놓은 프로젝트를 clone 해서 사용하려고 했다. 하지만 그 프로젝트 내에서 npm 을 이용해 여럿 자원들을 설치해 놓아서 css 를 적용시키기 위해서는 프로젝트 내에서 npm install을 해줘야 했다.

에러 발생

음? 그동안 node 정말 잘써왔는데 왜 값자기 이런 에러가 발생한 건지 몹시 당황스러웠다. 🤨 🤨 icu4c 이게 뭐람..?

icu4c 라이브러리

ICU는 “International Components for Unicode”의 줄임말이었다. IBM Knowledge Center의 ICU4C 문서의 내용이다.

ICU is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications. ICU is widely portable and gives applications the same results on all platforms and between C/C++ and Java software.
ICU is released under a nonrestrictive open source license that is suitable for use with both commercial software and with other open source or free software.

The C and C++ languages and many operating system environments do not provide full support for Unicode and standards-compliant text handling services. Even though some platforms do provide good Unicode text handling services, portable application code can not make use of them. The ICU4C libraries fills in this gap. ICU4C provides an open, flexible, portable foundation for applications to use for their software globalization requirements. ICU4C closely tracks industry standards, including Unicode and CLDR (Common Locale Data Repository).

요약하자면, ICU 라이브러리는 유니코드를 처리하기 위한 공용 구성요소이며, icu4c는 C/C++을 위한, icu4j는 Java를 위한 라이브러리!

icu4c 폴더 안에 여러 버전이 설치되어있는게 보이는가? 11월 16일 날 자바 jdk 11를 추가했었는데, 그것 때문에 추가적으로 설치가 이루어진 것 같았다. 하지만
http://paikwiki.github.io/2018/06/icu4c-issue-of-nodejs 위 블로그 방법대로 해보려 했으나 작동이 안되었다. ㅠㅠ 그래서 다시 구글링을 했다.

해결

node version을 업그레이드 하면 작동한다는 가능하다는 것을 발견했다. 바로 시도.

휴..마음의 안정...성공이다! 😎😎😎

프로젝트에 적용하기

윗 부분에 npm 안되는 거 보이죠...ㅠㅠ 하지만 upgrade 후에 packages가 잘 설치된 모습을 볼 수 있다. 실제 설치 후, css 파일이 잘 적용된 모습을 확인할 수 있었다.


http://paikwiki.github.io/2018/06/icu4c-issue-of-nodejs
https://jolly-sally.tistory.com/m/16

profile
Step by step goes a long way ✨

0개의 댓글