vue中安裝node-sass
npm install node-sass --save-dev
出現上面圖中問題
解決辦法:
vscode里,打開終端,輸入下面的內容
先輸入(在管理員模式下打開)
npm install --global --production windows-build-tools
否則會提示:
Please restart thie script from a administrative PowerShell!
再輸入
npm install --global node-gyp
原文鏈接:https://blog.csdn.net/caicsama/article/details/103679242