Switch from npm to yarn

1 Install yarn globally

npm i -g yarn

If it shows that the command cannot be found, add npx in front

npx npm i -g yarn

2. Install the Taobao image of yarn

yarn config set registry https://registry.npm.taobao.org

3. Install project dependencies

yarn install

4. Development

yarn run dev

5. pack

yarn run build

6. View version

yarn -V

download plugin

yarn add  xxx(插件名称)

Guess you like

Origin blog.csdn.net/weixin_45090657/article/details/129363302