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

前端 未结 30 2702
说谎
说谎 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 15:10

    I had the same issue. I couldn't find any proper working solution in here, so I found mine:

    Inspired by @Rob-Scott solution and other pointing that we could have 2 versions of Node.js installed, I went to C:\Program Files (x86)\nodejs and realized that I had a node.js version installed in addition to the VS default installation.

    My solution was quite simple:

    • Go to Tools > Options > Projects & solutions > Web package management > External web tools
    • Click on add an entry (most left of the top-right block of buttons)
    • Enter C:\Program Files (x86)\nodejs, validate by pressing enter
    • Bring it at the top of the list
    • Enjoy

    Probably Node.js is not set well in the PATH variable, but this is my working very quick solution, my 2 cents :)

提交回复
热议问题