NPM run dev runs the Vue project and reports an error: Node Sass does not yet support your current environment

After importing the Vue project, #npm run dev reported an error:

1
2
error in ./src/pages/hello.vue
Module build failed: Error: Node Sass does not yet support your current environment.......

 

 

Roughly it is a failure to compile a certain vue file, because the module fails to be constructed, and node sass does not support the current environment [mainly node].

Let’s take a look at the node version first:

    #node –version

 

Upgrading the node version/node version is too high will cause node-sass incompatibility, then just install node-sass again. 

1
#npm i node-sass -D

 [<==>#npm install node-sass -save-dev]

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *