vue3导入elementui

在项目根目录cmd运行vue add element-plus,选择full安装

遇到的bug

gyp verb check python checking for Python executable "python2" in the PATH

提示找不到python2,官网下载安装python并配置环境变量

import sys; print "%s.%s.%s" % sys.version_info[:3]; npm

估计需要pyhon2,我装了python3,所以报错。npm install [email protected] -g安装npm6.14.13版本

Could not find a declaration file for module './plugins/element'.
原代码
import installElementPlus from './plugins/element'

新代码
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import installElementPlus from './plugins/element'

你可能感兴趣的:(vue,elementui,vue.js,npm)