解决command failed: npm install --loglevel error

我以前vuecli的版本是3.xx.xx。通过npm update -g @vue/cli命令把vuecli把版本升到了3.12.1

试了八种方法,这个方法成功了

vuecli版本问题

npm update -g @vue/cli