vue-cli: vue ui can't create a project

Version

3.7.0

Environment info

Environment Info:

  System:
    OS: Windows 10
    CPU: (2) x64 Intel(R) Pentium(R) CPU G3258 @ 3.20GHz
  Binaries:
    Node: 10.15.3 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.15.2 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.9.0 - C:\c\Users\金龙\.npm-packages\npm.CMD
  Browsers:
    Edge: 44.17763.1.0
  npmPackages:
    vue-hot-reload-api: ^1.3.3 => 1.3.3
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

  1. enter “vue ui” in gitbash

  2. enter http://localhost:8000, step by step, the end, create project but it’s failed

  3. gitbash error message: { Error: Command failed: vue create vuevue --skipGetStarted --packageManager yarn --inlinePreset {“useConfigFiles”:false,“plugins”:{“@vue/cli-plugin-babel”:{},“@vue/cli-plugin-eslint”:{“config”:“standard”,“lintOn”:[“save”]}},“cssPreprocessor”:“stylus”}

    at makeError (C:\Users\金龙\AppData\Local\Yarn\Data\global\node_modules\execa\index.js:174:9) at Promise.all.then.arr (C:\Users\金龙\AppData\Local\Yarn\Data\global\node_modules\execa\index.js:278:16) at process._tickCallback (internal/process/next_tick.js:68:7) code: 1, stdout: ‘’, stderr: null, failed: true, signal: null, cmd: ‘vue create vuevue --skipGetStarted --packageManager yarn --inlinePreset {“useConfigFiles”:false,“plugins”:{“@vue/cli-plugin-babel”:{},“@vue/cli-plugin-eslint”:{“config”:“standard”,“lintOn”:[“save”]}},“cssPreprocessor”:“stylus”}’, timedOut: false, killed: false }

What is expected?

resolve create project in vue ui

What is actually happening?

I can’t create project in vue ui

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (4 by maintainers)

Most upvoted comments

@YangGoldDragon Quick workaround for this probrem is:

  1. copy cmd in error message
  2. quote --git, --inlinePreset (if these option exist)
  3. run in bash

For example, your command after this procedure is below.

vue create vuevue --skipGetStarted --packageManager yarn --inlinePreset '{"useConfigFiles":false,"plugins":{"@vue/cli-plugin-babel":{},"@vue/cli-plugin-eslint":{"config":"standard","lintOn":["save"]}},"cssPreprocessor":"stylus"}'

(If it still fails, removing --skipGetStarted may resolve.)

Thanks, I have already resolve this problem by your provide commands, But what is problems with “vue ui”, Why it can’t be use to correct create a project, I have some Obsessive compulsive disorders, it make me uncomfortable

@YangGoldDragon Quick workaround for this probrem is:

  1. copy cmd in error message
  2. quote --git, --inlinePreset (if these option exist)
  3. run in bash

For example, your command after this procedure is below.

vue create vuevue --skipGetStarted --packageManager yarn --inlinePreset '{"useConfigFiles":false,"plugins":{"@vue/cli-plugin-babel":{},"@vue/cli-plugin-eslint":{"config":"standard","lintOn":["save"]}},"cssPreprocessor":"stylus"}'

(If it still fails, removing --skipGetStarted may resolve.)