(window.webpackJsonp=window.webpackJsonp||[]).push([[26],{385:function(s,t,a){s.exports=a.p+"assets/img/python.27c8767f.png"},394:function(s,t,a){s.exports=a.p+"assets/img/MSVSVersion.1e5d464c.png"},578:function(s,t,a){"use strict";a.r(t);var n=a(12),e=Object(n.a)({},(function(){var s=this,t=s.$createElement,n=s._self._c||t;return n("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[n("h1",{attrs:{id:"sass-常见问题"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#sass-常见问题"}},[s._v("#")]),s._v(" sass 常见问题")]),s._v(" "),n("h2",{attrs:{id:"node-sass-4版本"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#node-sass-4版本"}},[s._v("#")]),s._v(" node-sass@4版本")]),s._v(" "),n("ol",[n("li",[n("code",[s._v("not find python")])]),s._v(" "),n("li",[n("code",[s._v("node-gyp")]),s._v(" error")]),s._v(" "),n("li",[n("code",[s._v("window build tool")]),s._v(" 中文乱码")])]),s._v(" "),n("div",{staticClass:"custom-block tip"},[n("p",{staticClass:"custom-block-title"},[s._v("TIP")]),s._v(" "),n("p",[s._v("以上3个问题的本质都是一个问题\n"),n("img",{attrs:{src:a(394),alt:"MSVSVersion"}})])]),s._v(" "),n("h2",{attrs:{id:"终极解决方式"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#终极解决方式"}},[s._v("#")]),s._v(" 终极解决方式")]),s._v(" "),n("ol",[n("li",[s._v("安装"),n("code",[s._v("python2.7")]),s._v("（设置window环境变量）\n"),n("br"),n("img",{attrs:{src:a(385),alt:"env"}})]),s._v(" "),n("li",[s._v("删除"),n("code",[s._v("node-gyp模块")]),s._v(" C:\\Users\\Administrator.node-gyp")]),s._v(" "),n("li",[s._v("安装"),n("code",[s._v("Visual Studio 2015")])]),s._v(" "),n("li",[s._v("设置"),n("code",[s._v("编译版本")]),n("div",{staticClass:"language-sh extra-class"},[n("pre",{pre:!0,attrs:{class:"language-sh"}},[n("code",[n("span",{pre:!0,attrs:{class:"token function"}},[s._v("npm")]),s._v(" config "),n("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("set")]),s._v(" msvs_version "),n("span",{pre:!0,attrs:{class:"token number"}},[s._v("2015")]),s._v("\n")])])])]),s._v(" "),n("li",[s._v("设置"),n("code",[s._v("python")]),s._v("版本 (设置window环境变量后，可以不需要这一步)"),n("div",{staticClass:"language-sh extra-class"},[n("pre",{pre:!0,attrs:{class:"language-sh"}},[n("code",[n("span",{pre:!0,attrs:{class:"token function"}},[s._v("npm")]),s._v(" config "),n("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("set")]),s._v(" python /path/to/python2.7\n")])])])]),s._v(" "),n("li",[s._v("重新安装"),n("code",[s._v("node-sass")]),n("div",{staticClass:"language-sh extra-class"},[n("pre",{pre:!0,attrs:{class:"language-sh"}},[n("code",[n("span",{pre:!0,attrs:{class:"token function"}},[s._v("npm")]),s._v(" "),n("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" -g node-sass@4.11.0 sass-loader@10.1.1\n")])])])])])])}),[],!1,null,null,null);t.default=e.exports}}]);