verbose Please try running this command again as root/Administrator.
2729 verbose stack Error: node-sass@3.13.1 postinstall:node scripts/build.js
2729 verbose stack Exit status 1
2729 verbose stack at EventEmitter.(C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:283:16) css
2729 verbose stack at emitTwo (events.js:125:13)
2729 verbose stack at EventEmitter.emit (events.js:213:7)
2729 verbose stack at ChildProcess.(C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
2729 verbose stack at emitTwo (events.js:125:13)
2729 verbose stack at ChildProcess.emit (events.js:213:7)
2729 verbose stack at maybeClose (internal/child_process.js:897:16)
2729 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
OS:Win10node
Python:2.7git
npm -v
5.0.3github
node -v
v8.1.3npm
ERR! stack Error:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
stack at ChildProcess.onExit (f:\SOFTWARE\Nodejs\install4.1\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.10240windows
查看node-gyp的安裝教程發現windows環境須要安裝Visual C++ Build Environment
下載安裝成功後須要設置使用cmd命令執行:npm config set msvs_version 2015,後面能夠歡快的編譯npm rebuild node-sass了sass
node-sass是編譯sass到css文件,甚至能夠經過中間件的方式自動編譯。網絡
參考:node-gyp的安裝教程post