解決npm安裝node sass失敗的問題

2021-10-02 14:56:39 字數 378 閱讀 7144

將vue-element-admin從github上轉殖下來以後使用npm install命令時出現了錯誤,錯誤顯示是在安裝node-sass時出了問題,在進行了多次嘗試之後發現了解決問題的方法。

其中部分錯誤提示為

npm err! cb() never called!

npm err! this is an error with npm itself. please report this error at:

npm err!

解決方法:

刪除專案中的package-lock.json和node_modules資料夾,然後執行npm install

npm 安裝node sass失敗問題

安裝 node sass 的時候總是會各種不成功,今天我琢磨了一會兒總算知道要怎麼解決了。macos 系統直接執行下面的命令即可 sass binary site npm install node sass我們一般更希望能跨平台 並且直接使用npm install安裝所有依賴,所以我的做法是在專案內...

npm 安裝 node sass報錯的問題

vue 專案在安裝依賴,也就是執行npm install的過程中報sassloader相關的一堆問題 2.cmd指定win32 x64 72 binding.node路徑,後面是你win32 x64 72 binding.node存放目錄的絕對路徑 set sass binary path d yo...

安裝node sass正確姿勢

windows下面安裝node sass,確實令人頭痛,正確姿勢如下 檢視映象 npm命令 npm config get registry yarn命令 yarn config get registry修改為 映象 npm命令 npm config set registry yarn命令 yarn ...