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

前端 未结 30 2697
说谎
说谎 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:53

    Just execute: → npm rebuild node-sass --force



    If the above for some reason didn't work out for you, try this:
    1. Delete node-sass folder under node_modules
    2. npm install

    In my case it also couldn't find Python.

    Following procedure solved the issue (Windows):

    npm rebuild node-sass --force
    -- cannot find python.exe, if you have Python installed, add it to your path:
    set PYTHON=C:\Python27\Python.exe
    -- else: download python "Windows x86-64-MSI" installer from https://www.python.org/downloads/release/python-2714/
    -- install python
    -- at installation start check: add env variable to path
    -- after successfull installation:
    npm rebuild node-sass --force
    -- finished successfully
    

提交回复
热议问题