thank: CSDN@beeegood Questions provided.
Today, they encountered a very interesting bug. When they created a project with @ Vue/cli, they reported an error, which they had never seen before:
At first, I thought it was a version problem. After all, the error message said update, but the version of CLI was the latest. After asking, the node and NPM versions were also the latest (12.16.1, which was the latest as of the time I wrote this article). Most importantly, there was no old version of Vue cli
That’s very interesting. According to convention, when encountering the front-end problem, the first reaction is to unload and reload
npm uninstall -g @vue/cli
npm cache clean --force
npm install -g @vue/cli
However, it’s useless. After checking for a long time, we can’t find the relevant error report on the Internet, which is very embarrassing.
Later, I noticed that there is an output of yarn below. Is the built-in yarn in cli?But this shouldn’t be:
although I think it’s incredible, I still decided to look at the version of yarn. Yarn is highly suspected. Sure enough:
the problem was found. But what is this?Hadoop?
Later, I remembered that yarn is also a part of Hadoop, which is used to schedule resources: