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

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

    Note I'm using VS 2015, 64-bit Windows 7.

    Also works for VS 2017 and VS 2019 (from replies to this post)

    Task Runner Explorer can't load tasks

    For VS 2015

    • Go to: Tools > Options > Projects and Solutions > External Web Tools

    For VS 2017(.3)

    • Tools > Options > Projects and Solutions > Web Package Management > External Web Tools (per @nothrow)

    In VS 2017 & 2019, you also need to put $(PATH) above $(VSINSTALLERDIR)\Web\External


    • Reorder so that $(PATH) is above $(DevEnvDir)\Extensions\Microsoft\Web Tools\External


    Deleting node_modules and running npm install and then npm rebuild node-sass did nothing.

提交回复
热议问题