vue2 and vue3 install element-ui or element-plus plug-in and plug-in uninstallation

Plug-in download (command line mode):

vue2用npm install element-ui --save

vue3用npm install element-plus --save

There is another way to download, which is to install and download the plug-in in the vue ui interface ( vue3 is not recommended! !)

 

The second step is also crucial! Main.js must contain these three sentences

// 导入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

app.use(ElementPlus)

If you downloaded by mistake, you can uninstall it in the following ways

If you use the plug-in installed by vuecli3:

npm uninstall vue-cli-plugin-element-ui

npm uninstall vue-cli-plugin-element-plus

If the plugin is installed using npm

npm uninstall element-ui

npm uninstall element-plus

Guess you like

Origin blog.csdn.net/weixin_46019681/article/details/124909486