npm install ->Failed at the node-sass@4.5.0 postinstall script

后端 未结 17 1856
梦谈多话
梦谈多话 2021-01-30 08:02

I\'m trying to do npm install and an error appears :

Failed at the node-sass@4.5.0 postinstall script.

I tried to delete no

17条回答
  •  终归单人心
    2021-01-30 08:53

    I also had to face the same problem with node v12.16.3.

    1. Remove node-sass dependency from your package.json if it is mentioned in your dependencies.This will allow npm to install other required dependencies without any disruption.

    2. Delete package-lock.json file and node_modules folder from your project.

    3. Force clean the entire NPM cache by using following comand.

      npm cache clean --force
      
    4. Re-Install all the dependencies.

      npm install
      
    5. Now you can install node-sass.

      npm i node-sass
      

提交回复
热议问题