발생 과정
토이 프로젝트인 Drello의 UI를 개선하기 위해 Semantic UI를 이용하기로 했다.
Semantic UI를 설치하는 과정에서 ReferenceError: primordials is not defined 오류가 발생했다.
명령어
npm install semantic-ui --save
오류
해당 오류는 node.js의 버젼이 Semantic UI를 허용하지 않기 때문에 발생했다. 따라서 node.js의 버젼을 다운그레이드해야 해결된다.
해결법
나는 nvm window를 설치하여 다른 버젼 node.js를 설치하여 사용할 수 있게 했다.
본래 내가 사용하는 버젼은 v14이고 다운그레이드한 버젼은 v10이다.
출처
https://github.com/coreybutler/nvm-windows
coreybutler/nvm-windows
A node.js version management utility for Windows. Ironically written in Go. - coreybutler/nvm-windows
github.com
'개발 공부 > React, React Redux' 카테고리의 다른 글
State (0) | 2021.06.21 |
---|---|
Component와 Props (0) | 2021.06.21 |
비동기 처리 (async, await) (0) | 2021.06.17 |
semantic UI 설치 실패 - Creating src/theme.config (LESS config) C:\Users\miladild\semantic\src\theme.config (0) | 2021.06.03 |