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

后端 未结 17 1795
梦谈多话
梦谈多话 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:26

    try

    sudo rm -rf package-lock.json node_modules
    sudo npm cache clean --force
    sudo npm i --unsafe-perm node-sass
    
    0 讨论(0)
  • 2021-01-30 08:27

    Solved this by force installing node-sass locally: npm install -f node-sass

    I was pretty sure I knew what I was doing... this

    0 讨论(0)
  • 2021-01-30 08:32

    You should try to install SASS.

    I remember havign this issue in AngularJS with compass, I had to install it with Ruby to make it work. This was 3 years ago, so I'm not sure this would be the solution, but it doesn't cost anything except time to try, right ?

    0 讨论(0)
  • 2021-01-30 08:33

    I'm trying to do npm install in the ionic project and an error appears

    Failed at the node-sass@4.9.0 postinstall script.

    The following steps worked for me ionic project

    Remove npm than run the following commands

    npm i

    npm install @ionic/app-scripts@latest--unsafe-perm=true --allow-root

    0 讨论(0)
  • 2021-01-30 08:36

    Node-sass@4.5.0 cannot be installed on node 8

    Please update either node-sass or node version compatible

    Go to https://github.com/sass/node-sass/releases to check which fits for you

    0 讨论(0)
  • 2021-01-30 08:36

    I had the same issue with a new install with Keystone.js. I was able to get pass this issue by removing Node Sass from package.json and running npm install again. Being that the package wasn't listed under node modules. And it worked fine after that.

    0 讨论(0)
提交回复
热议问题