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