vue-cli 3.0 图形化界面无法打开

vue-cli 3.0

vue ui

打开图形化界面,但是界面一直loading
报错如下

clipboard.png

Unhandled GraphQL subscription error
Uncaught (in promise) Error: Network error: Cannot use GraphQLSchema "[object Object]" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

我把node_modules删了重装后还是有这个错误,但是不影响其他使用。
看上去好像是装了两个版本的 graphql。但是这个貌似是 vue-cli 3.0 自带的依赖,我的 package.json 中并没有这个依赖。

阅读 5.3k
1 个回答

楼主,你好~
检查下你自己的 node 版本。官方要求如下:

Node 版本要求

Vue CLI 需要 Node.js 8.9 或更高版本 (推荐 8.11.0+)。你可以使用 nvm 或 nvm-windows 在同一台电脑中管理多个 Node 版本。

另外,如果满足了,确认下 vue-cli 的版本是多少?本机上如果安装了 yarn,可以试试 yarn add @vue/cli global


如有帮助,麻烦点击下采纳,谢谢~

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题