suyeoniii
수바리의 코딩일기
suyeoniii
전체 방문자
오늘
어제
  • 분류 전체보기
    • 🪓 삽질일기
    • 🔙 Backend
      • 🟢 Node.js
      • 🐈‍⬛ NestJS
      • 🌿 Springboot
      • 🗄️ Database
    • 🌸 Frontend
      • 🌐 React.js
      • 💚 Vue.js
      • 🤖 Android
    • 🕹️ 알고리즘
      • 💯 코딩테스트
    • 🔠 프로그래밍 언어
      • 💛 Javascript
      • 💙 Typescript
    • 🚀 배포
    • 🐱 Git
    • etc.
      • 개발환경
      • 오픈 API
      • 개념정리
      • 커뮤니티
    • AI
      • 생성형 AI
    • 회고

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • Spring Boot
  • node.js
  • 백준
  • MAC
  • nodejs
  • html
  • springboot
  • MySQL
  • android
  • 알고리즘
  • Git
  • java
  • C++
  • AWS
  • ec2
  • node
  • vue
  • ubuntu
  • javascript
  • 회고

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
suyeoniii

수바리의 코딩일기

[Node.js] error: node sass version 6.0.0 is incompatible with ^4.0.0.
🪓 삽질일기

[Node.js] error: node sass version 6.0.0 is incompatible with ^4.0.0.

2021. 6. 10. 00:20
반응형

기존 React에서 기본 node-sass 버전이 4.0.0 이었는데

이게 설치되지 않는 문제가 있었다!

 

 

npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/binding/src/binding.o] Error 1

 

그래서 6.0.0을 설치했더니 기존 코드가 6.0.0에서는 작동하지 않는듯 했다

 

error: node sass version 6.0.0 is incompatible with ^4.0.0.

 

그래서 4.0.0이나 5.0.0을 깔려고 했는데 그것도 안됨ㅠㅠ

 

보니까 Node버전 별로 지원하는 node-sass버전이 달랐다!

내 노드버전은 16버전이라 6.0.0만 지원하는 것이었다

 

 

node-sass 4.0.0버전을 사용해야하니 node를 14버전으로 재설치하고 해결했다!

 

https://suyeoniii.tistory.com/76

 

[Node.js] nvm으로 node버전 변경하기

현재 nvm으로 설치된 node 버전 확인 nvm ls 현재 선택된 버전은 16버전이다 14버전을 설치해보겠다 nvm install v14 설치하면 14버전으로 바뀐 것을 볼 수 있다!! 이전에 brew만으로 node를 설치하고 사용할

suyeoniii.tistory.com

위 게시글에서 노드버전을 변경하는 것을 확인할 수 있다

반응형
저작자표시 (새창열림)

'🪓 삽질일기' 카테고리의 다른 글

[Spring Boot][Gradle] 실행 시 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 에러  (0) 2021.09.06
[Datagrip] Test Connection 시, Server returns invalid timezone. Need to set 'serverTimezone' property. 에러  (1) 2021.09.06
[webpack] sh: /node_modules/.bin/webpack-dev-server: Permission denied  (0) 2021.06.05
[Android] OkHttpClient .build 에러 - java.lang.exceptionininitializererror  (0) 2021.05.21
[AWS EC2] 22: Operation timed out, 22: Connection refused  (0) 2021.05.14
    '🪓 삽질일기' 카테고리의 다른 글
    • [Spring Boot][Gradle] 실행 시 Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 에러
    • [Datagrip] Test Connection 시, Server returns invalid timezone. Need to set 'serverTimezone' property. 에러
    • [webpack] sh: /node_modules/.bin/webpack-dev-server: Permission denied
    • [Android] OkHttpClient .build 에러 - java.lang.exceptionininitializererror
    suyeoniii
    suyeoniii
    개발관련 문제 해결, 공부한 내용 등을 업로드합니다.

    티스토리툴바