Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- 김골라
- AWS
- Unable to find the global bin directory
- node
- EC2
- rwdImageMaps
- aws ec2
- GeoJSON object too complex/large
- ERR_PNPM_NO_GLOBAL_BIN_DIR
- AWS CodePipeline
- 이미지 좌표 추출
- expo
- Error:error:0308010C:digital envelope routines::unsupported
- ogr2ogr
- SASS
- netlify variables
- react
- C언어
- 설치완료안됨
- Sequelize Error: Dialect needs to be explicitly supplied as of v4.0.0
- can't getting credentials
- S3
- CSS
- 이미지 맵
- NODE_VERSION
- 어셈블리어
- nodejs
- credential error
- AWS CodeBuild
- 반응형 페이지 좌표 변환
Archives
- Today
- Total
ImFe's study
[Sass] Node Sass version 6.0.1 is incompatible with ^4.0.0|| ^5.0.0. 해결 본문
WEB/React
[Sass] Node Sass version 6.0.1 is incompatible with ^4.0.0|| ^5.0.0. 해결
ImFe 2021. 6. 28. 18:36
Styled Component말고도 Sass도 한번 써봐야겠다 싶어서 npm으로 설치하였더니(로컬) 해당 오류가 발생했습니다.
node-modules를 삭제하고 npm install을 해봐도 해결이 안돼서 검색을 해보니 버젼을 낮춰서 깔아야 하는 듯 합니다.
현재 node-sass의 버전은 6.0.1입니다.
node의 버전은 14.16.0입니다.
node-sass의 정보를 확인해보니, Node 13까지는 5 밑으로만 깔아주면 됐던 듯 합니다.
package.json파일에서 버젼 앞에 있었던 캐럿(^)을 수정했습니다.
그 다음 node-modules를 삭제 후 npm install 명령어를 통해 모듈을 다시 설치해주면 node-sass가 5보다 낮은 버젼으로 설치되며 정상적으로 작동합니다.
'package.json파일은 npm으로 설치하면 버젼 정보가 기록되는구나' 라고만 생각했는데 그거보다 훨씬 더 많은 정보가 담겨있었습니다. 나중에 한번 package.json파일에 대해 정리해야 할 것 같습니다.
'WEB > React' 카테고리의 다른 글
[React] Redux 도입 (0) | 2021.06.29 |
---|---|
[Sass] Sass를 이용한 버튼 컴포넌트 스타일링 (0) | 2021.06.29 |
[React] React Redux의 개념 (0) | 2021.06.25 |
[React] 클래스에서 라이프사이클 구현 (0) | 2021.06.24 |
[React] Hook (0) | 2021.06.24 |
Comments