天天看點

解決Missing binding node_modules\node-sass\vendor\win32-x64-83\binding.node

在搭建一個基于quasar的github拉下的項目時,用

quasar dev
           

一直提示:

Missing binding node_modules\node-sass\vendor\win32-x64-83\binding.node
  Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x
  Found bindings for the following environments:
    - Windows 64-bit with Node.js 14.x
  This usually happens because your environment has changed since running `npm install`.
  Run `npm rebuild node-sass` to download the binding for your current environment.
           

又是各種搜尋,網上的各種辦法都試過了(包含重新安裝node-sass、修改源為淘寶等),沒有解決,後面打開安裝目錄發現node_modules\node-sass\vendor\win32-x64-83目錄下為空

然後就去github(https://github.com/sass/node-sass/releases/tag/v4.14.0)找到相應的檔案,下載下傳放到此目錄,然後再執行:

npm rebuild node-sass
           

然後提示rebuilt dependencies successfully就成功了

項目也成功執行起來了