element-UI启动项目,二次开发
一、步骤;
第一步:Fork一份Element的dev源码到自己的github上面,作为以后的开发基础版本。
源码的地址:https://github.com/ElemeFE/element.git
第二步:将Element的源码从自己的github上面clone下来,做二次开发
<1>git clonegit@github.com:yunchai/element.git
<2>cd 项目目录
<3>不要使用npm install来安装依赖,因为Element的源码已经利用yarn将依赖的版本锁定,所以可以直接在项目的根目录执行命令:npm run dev就可以的,会自动利用yarn将所需的依赖安装下来
二、问题;
1、需要安装python环境
2、“D:\sf project\js-source\element-dev\node_modules\node-sass\build\binding.sln”(默认目标) (1) ->
(_src_\libsass 目标) ->
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件“VCBuild.exe”。要解决此问题,1) 安装 .NET Framework 2.0 SDK;2) 安 装 Microsoft Visual S
tudio 2005;或 3) 如果将该组件安装到了其他位置,请将其位置添加到系统路径中。 [D:\sf project\js-source\element-dev\node_modules\node-sass\build\binding
.sln]
npm install -g node-gyp
node-gyp --python /path/to/python2.7
npm config set python /path/to/executable/python2.7