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

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

    I had the same problem in a Windows environment, receiving the following error:

    Error: Missing binding C:\Development{ProjectName}\node_modules\node-sass\vendor\win32-ia32-47\binding.node
    Node Sass could not find a binding for your current environment: Windows 32-bit with Node.js 5.x
    Found bindings for the following environments:
       - Windows 64-bit with Node.js 6.x

    None of the npm commands listed in the other answers here (npm install, npm rebuild node-sass, etc.) worked.

    Instead, I had to download the missing binding and place it in the appropriate destination folder.

    The bindings can be found on git. Match the file with the folder name identified after /node_modules/node-sass/vendor/ in your error message ('darwin-x64-11' in your case, so you'd want the darwin-x64-11_binding.node file).

    Create the missing folder in your project (/node_modules/node-sass/vendor/darwin-x64-11), copy the .node file to the new directory, and rename it to binding.node.

    Node-sass release URL: https://github.com/sass/node-sass/releases

提交回复
热议问题