node-sass安裝失敗新解決方式

第一種解決方式

網上的:node

  1. https://www.jianshu.com/p/92afe92db99f
  2. http://www.javashuo.com/article/p-nfqvizif-cs.html

可是網上的存在一個問題在運行 npm install --global --production windows-build-tools,window須要管理員權限,不然會報 The build tools cannot be installed without administrative rights.git

其實最好的方式就是我要說的第二種方式github

第二種解決方式

第一步

運行 npm install --save-dev node-sass ,而後找到github地址,下載win32-x64-64_binding .node文件npm

image.png

第二步

將下載好的文件,直接拖到下面這個目錄中去segmentfault

image.png

再運行npm install --save-dev node-sass  基本成功以下所示:windows

image.png

相關文章
相關標籤/搜索