element-ui
装置: npm i element-ui -S
/* main.js */import ElementUI from 'element-ui';import 'element-ui/lib/theme-chalk/index.css';Vue.use(ElementUI);
sass
- 装置指定版本: npm install sass-loader --save-dev
- 装置node-sass(指定版本): npm i -D node-sass@4.12.0
sass-loade卸载: npm uninstall sass-loade
如果报错:
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb check python checking for Python executable "python" in the PATH
次要是windows平台短少编译环境
- 先运行: npm install -g node-gyp
- 而后运行:运行 npm install --global --production windows-build-tools 能够主动装置跨平台的编译器:gym
还是报错 就看看版本是不是对应的上
装置指定版本
npm i -D node-sass@4.12.0
npm i -D sass-loader@7.1.0
装置后应用要在build/webpack.base.conf.jsde里的在module的rules中插入以下代码增加配置:
{test: /\.scss$/,loaders: ["style", "css", "sass"]},
最初从新运行