是 Ray 不是 Array

整理這些技術筆記真的很花時間,如果你願意 關閉 Adblock 支持我,我會把這份感謝轉換成更多「踩坑轉避坑」的內容給你!ヽ(・∀・)ノ

Advertisement
2019-12-23 Vue

Vue 專案出現 Node Sass could not find a binding for your current environment

前言

最近在弄 Vue Cli 2 專案的時候突然發生一個錯誤,Node Sass could not find a binding for your current environment,所以這一篇記錄一下該如何解決。

問題

由於該專案是 Vue Cli 2,所以當我執行 npm start 時卻出現以下錯誤

1
2
3
4
5
6
7
8
Module build failed: Error: Missing binding D:\vue\node_modules\node-sass\vendor\win32-x64-67\binding.node
Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 11.x

Found bindings for the following environments:
- OS X 64-bit with Node.js 12.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.

解決方法

解決方法其實很簡單 ,只需要在該專案下執行 npm rebuild node-sass 就可以了,至於問題點是 node-sass 版本安裝上的錯誤導致。

參考文獻

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

整理這些技術筆記真的很花時間,如果你願意 關閉 Adblock 支持我,我會把這份感謝轉換成更多「踩坑轉避坑」的內容給你!ヽ(・∀・)ノ

Advertisement

你的支持會直接轉換成更多技術筆記

如果我的筆記讓你少踩一個坑、節省 Debug 的時間,
也許你可以請我喝杯咖啡,讓我繼續當個不是 Array 的 Ray ☕

我想要說...

ray — -zsh — 80x24
~ mkdir israynotarray
~ cd israynotarray
israynotarray git:(main) pnpm run start

分享這篇文章

留言

© 2025 Ray. All rights reserved.

Powered by Ray Theme