報錯:Node Sass could not find a binding for your current environment

node.js升級或變更後,項目啓動出錯

Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 10.x


  • 詳細信息:(片段):

    Module build failed: Error: Missing binding G:\myCode\YB\clientapps\AccountV4\node_modules_node-sass@4.9.0@node-sass\vendor\win32-x64-64\binding.node
    Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 10.x
    Found bindings for the following environments:
    Windows 64-bit with Node.js 8.x
    
    
  • 原因:
    還未查明

  • 解決方案:
    重裝node-sass包

    npm rebuild node-sass
    

    安裝完重新啓動就ok了, 所以沒事還是別更新node,最好保持團隊的環境一致 。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章