Solution to node sass installation failure

When NPM installs the node sass dependency, the github.com Download the. Node file from the. Due to the problems of domestic network environment, the download time may be very long, even leading to timeout failure.

Method 1:

Use Taobao image:

npm install -g cnpm --registry=https://registry.npm.taobao.org

Method 2: if the use of Taobao mirror still failed

Delete the entire dependent node_ Use cnpm I to download the modules file again

Method 3:

    unload node sass

    npm uninstall node-sass
    
      then install with cnpm: you must first uninstall the installed node sass, otherwise you cannot install the new node sass

      cnpm install node-sass
      

      After that, start the Vue project again.


Read More: