Node Sass couldn't find a binding for your current environment

前端 未结 30 2613
说谎
说谎 2020-11-29 14:23

I am having issues building an app because node-sass keeps failing with the error.

ERROR in Missing binding /Users/warren/Sites/random-docs/my-cms/nod

30条回答
  •  春和景丽
    2020-11-29 14:52

    For my particular case none of the above answers worked. So what it worked:

    rm -rf node_modules 
    rm -rf /tmp/* 
    rm -rf /root/.npm/node-sass 
    npm uninstall --save node-sass 
    npm cache clean --force 
    

    npm cache verify to check that nothing is left in the cache

    npm install
    

    Altough I haven't tried to reproduce the sequence it was a combination of the above that worked. In addition you may also try:

    npm install --save node-sass or npm install node-sass -g

    npm rebuild node-sass
    npm install bindings
    

提交回复
热议问题