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

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

    Uninstall current npm and install lower versions, it is a common error if version didn't match, downgrading node/npm will mostly fix this kind of issues

    npm install -g npm@4.6.1
    
    0 讨论(0)
  • 2021-01-30 08:40

    Just Try with this command hope it will very helpful. it's working for me

    sudo npm install -g node-sass@4.5.0 --unsafe-perm=true --allow-root
    
    0 讨论(0)
  • 2021-01-30 08:40

    use this flag --unsafe-perm=true

    sudo npm i gulp-sass -ES --unsafe-perm=true
    
    0 讨论(0)
  • 2021-01-30 08:46

    Got the same problem (node v10.3.0, ionic 3.13.0). This worked :

    • Delete package-lock.json,
    • Delete node_modules folder,
    • Run npm install again.
    0 讨论(0)
  • 2021-01-30 08:47

    The following steps worked for me

    npm install -g node-sass@4.5.0 --unsafe-perm=true --allow-root
    
    npm cache clean
    
    
    npm install
    
    0 讨论(0)
  • 2021-01-30 08:48

    The minimum version of node-sass that supports Node 8 is 4.5.3. You'll need to upgrade your node-sass or downgrade your Node version. Ionic may also have separate issues since it isn't a tested platform with node-sass.

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