vue-cli: Cannot run "vue ui" command on the terminal (vue-cli-plugin-apollo)

Version

3.0.0-rc.1

Reproduction link

http://www.no-url-this-is-in-the.terminal

Steps to reproduce

  1. npm install -g @ vue/cli
  2. vue ui

What is expected?

I expect to see the graphical interface in the browser

What is actually happening?

I receive the following error:

sh-3.2# vue ui
/usr/local/lib/node_modules/@vue/cli/node_modules/vue-cli-plugin-apollo/graphql-server/index.js:65
      ...resolvers,
      ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@vue/cli/node_modules/@vue/cli-ui/server.js:1:80)

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 16 (3 by maintainers)

Most upvoted comments

I could see the GUI when I run vue ui,and then when creating a project, i get this error. SyntaxError: Unexpected token [ in JSON at position 99 at JSON.parse (<anonymous>) at getParseResult (C:\Users\xuebingwang\AppData\Roaming\npm\node_modules@vue\cli\node_modules@akryum\winattr\lib\shell\index.js:31:17) at C:\Users\xuebingwang\AppData\Roaming\npm\node_modules@vue\cli\node_modules@akryum\winattr\lib\shell\index.js:102:14 at ChildProcess.<anonymous> (C:\Users\xuebingwang\AppData\Roaming\npm\node_modules@vue\cli\node_modules@akryum\winattr\lib\shell\index.js:84:5) at ChildProcess.emit (events.js:315:20) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)