Problems encountered when introducing Element

Problems encountered when introducing Element

Install command:

vue add element

But when I was using it, it kept displaying an error, so I changed several commands: It still reported an error, and the information was as follows:
insert image description here
Then I changed a command, and still reported an error:
npm i element -ui -Sinsert image description here

Later, I asked the boss and said that it might be a problem of version mismatch, so I tried another command and it succeeded:
npm install element-plus --saveinsert image description here

Guess you like

Origin blog.csdn.net/weixin_43778617/article/details/126938961