问题描述:

因为发现pnpm好用,所以现在全面切为使用pnpm,但是通过pnpm和vue-cli创建项目的时候发生了报错:

Error: command failed: pnpm install --reporter silent --shamefully-hoist

解决办法:

将pnpm降级到6就可以:
npm install pnpm@6 -g

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐