FrontEnd

[vue] Error: Node Sass does not yet support your current environment 오류 해결하기

김평범님 2023. 2. 13. 21:57
반응형

 

Node Sass does not yet support your current environment

 

🤔발생된 에러코드

Module build failed(from/node_modules/sassloader/dist/cjs.js): friendly-errors 10:11:49
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
For more information on which environments are supported please see: https://github.com/sass/node-sass/releases/tag/v4.14.1 at module.exports (C:\...\node_modules\node-sass\lib\binding.js:13:13) at Object.<anonymous> (C:\...\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (node:internal/modules/cjs/loader:1165:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1219:10)
    at Module.load (node:internal/modules/cjs/loader:1043:32)
    at Function.Module._load (node:internal/modules/cjs/loader:878:12)
    at Module.require (node:internal/modules/cjs/loader:1067:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at getDefaultSassImpl (C:\...\node_modules\sass-loader\dist\index.js:198:10)
    at Object.loader (C:\..\node_modules\sass-loader\dist\index.js:80:29)

 

📌해결방법

npm rebuild node-sass

해결방법은 매우 간단히도 위에 코드를 한번 돌려주면 된다.

npm rebuild 명령어를 이용하면 해당 패키명을 재빌드 해주는 코드라고 한다.

 

https://docs.npmjs.com/cli/v7/commands/npm-rebuild

 

npm-rebuild | npm Docs

Rebuild a package

docs.npmjs.com

 

반응형