install vue-cli
if you haven't yet
sudo npm install -g @vue/cli
OR update to latest
sudo npm update -g @vue/cli
then create a new project with
vue create hello-world
then select vue 3 project
Including comment from @Eazash:
You need to verify your npm cache with npm cache verify
and then try installing vue-cli. If that doesn't work, try clearing the cache altogether with npm cache clean --force
could also try with sudo privileges: sudo npm cache verify
and sudo npm cache clean --force
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…