question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command: vue config

See original GitHub issue

Currently users have to manually open and edit ~/.vuerc and by looking at the help message users don’t really realize it’s there.

We should have a vue config command that allows users to more easily inspect and modify the config (and potentially makes it easier for external tools to access/modify the config via the CLI).

  • vue config: prints the resolved full path and content of ~/.vuerc
  • vue config get <path> - e.g. vue config get packageManager
  • vue config set <path> <value> - e.g. vue config set useTaobaoRegistry false (should handle special case parsing for boolean and number values)
  • vue config delete <path> - e.g. deleting a preset: vue config delete preset.foo
  • vue config edit - opens ~/.vuerc with the default editor (via EDITOR env var)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ImCharmainejoycommented, Apr 20, 2019

I’m currently trying the Vue-CLI 3 but i’m having these error below after i set the packageManager: “pnpm”

 Creating project in /home/../my-project. 

Installing CLI plugins. This might take a while... ERROR command failed: pnpm install --loglevel error --shamefully-flatten```

and I found that it was actually stored somewhere .. thanks to @yyx990803 for the vue config
I changed the packageManager from pnpm to npm ...

/Desktop/WebpackPackage/my-folder$ vue config
Resolved path: /home/charmainejoy/.vuerc
 {
  "useTaobaoRegistry": false,
  "packageManager": "npm"
}

finally I got my new application working..





1reaction
yyx990803commented, Jun 8, 2018

@beardedpayton you should be looking at here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration Reference | Vue CLI
vue.config.js is an optional config file that will be automatically loaded by @vue/cli-service if it's present in your project root (next to ...
Read more >
CLI Service - Vue CLI
The vue-cli-service serve command starts a dev server (based on webpack-dev-server) that comes with Hot-Module-Replacement (HMR) working out of ...
Read more >
Installation | Vue CLI
To install the new package, use one of the following commands. You need administrator privileges to execute these unless npm was installed on ......
Read more >
Working with Webpack | Vue CLI
This file dynamically resolves and exports the exact same webpack config used in vue-cli-service commands, including those from plugins and even ...
Read more >
Modes and Environment Variables - Vue CLI
When running vue-cli-service , environment variables are loaded from all corresponding files. If they don't contain a NODE_ENV variable, it will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found