A brief discussion on the corresponding versions of node node-sass sass-loader

A brief discussion on the corresponding versions of node node-sass sass-loader

Check whether the node-sass and node versions correspond

node -v

The specific corresponding versions are as follows:

insert image description here

Image from https://github.com/sass/node-sass

The node version does not correspond, upgrade or downgrade the node

Use nvm to manage and switch node versions

Install nvm-window https://github.com/coreybutler/nvm-windows. Win10 adds system environment and user environment by default. If the command line cannot use nvm, you need to add the environment yourself

Use the image to find the settings.txt file in the nvm installation directory

node_mirror: https://npm.taobao.org/mirrors/node/
npm_mirror: https://npm.taobao.org/mirrors/npm/

Install and use node.js through nvm
Use the install command in nvm to install different versions of node.js. For example, to install version 12.1.0 of node.js:

nvm install 12.1.0

To switch to a certain version, you can use the use command, such as:

nvm use 12.1.0

After the switch is complete, you can enter node -v and npm -v, and you can see that the version has been switched to the version you want to use.
5. Check the installed node version and the version in use

nvm ls 

insert image description here

node-sass version mismatch

Execute in project environment

npm uninstall node-sass
npm install node-sass@version number --save-dev 

Check if the node-sass and sass-loader versions correspond

The following are some version numbers corresponding to the specific Baidu

sass-loader 4.1.1, node-sass 4.3.0
sass-loader 7.0.3, node-sass 4.7.2
sass-loader 7.3.1, node-sass 4.7.2
sass-loader 7.3.1, node-sass 4.14.1

Execute in project environment

npm uninstall node-sass sass-loader
npm install sass-loader@version numbernode-sass@version number--save-dev //Install the corresponding version

This is the end of this article about the node node-sass sass-loader version correspondence issue. For more relevant node node-sass sass-loader version correspondence content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Using sass in vue and solving compilation errors caused by too high a version of sass-loader
  • Solve the error problem after vue cli4 upgrades sass-loader (v8)
  • How to solve the version conflict between sass-loader and node-sass

<<:  Ubuntu 20.04 turns on hidden recording noise reduction function (recommended)

>>:  How to query date and time in mysql

Recommend

Implementing access control and connection restriction based on Nginx

Preface Nginx 's built-in module supports lim...

Comparative Analysis of UI Applications of Image Social Networking Sites (Figure)

In our life, work and study, social networks have ...

Detailed explanation of command to view log files in Linux environment

Table of contents Preface 1. cat command: 2. more...

How to use Portainer to build a visual interface for Docker

Portainer Introduction Portainer is a graphical m...

Linux command line quick tips: How to locate a file

We all have files stored on our computers -- dire...

Linux uses binary mode to install mysql

This article shares the specific steps of install...

W3C Tutorial (2): W3C Programs

The W3C standardization process is divided into 7...

Springboot+Vue-Cropper realizes the effect of avatar cutting and uploading

Use the Vue-Cropper component to upload avatars. ...

In-depth understanding of MySQL self-connection and join association

1. MySQL self-connection MySQL sometimes needs to...

A simple explanation of MySQL parallel replication

1. Background of Parallel Replication First of al...

Detailed explanation of Vue monitoring attribute graphic example

Table of contents What is the listener property? ...

Analysis of Linux kernel scheduler source code initialization

Table of contents 1. Introduction 2. Basic Concep...

Detailed explanation of GaussDB for MySQL performance optimization

Table of contents background Inspiration comes fr...

Detailed explanation of the application of CSS Sprite

CSS Sprite, also known as CSS Sprite, is an image...