개발환경

node-sass error

hyundy 2021. 11. 22. 01:57

node-sass 설치후 서버 실행 하니 에러가 뜬다. 

Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.

 

 

 

해당 에러가 뜨는데 node 버전별 sass 호환 을 보면 다음과 같다. 

현재 내 로컬은 node 16 버전인데 sass 6버전을 설치하면 계속 같은 에러가 뜬다. 

 

 

해결방법

1. node-sass 6버전이 설치 된 상태에서 yarn.lock, pakage-lock.json 삭제한다.

2. yarn install