-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Reselect NPM or Yarn after first project creation #1300
Comments
Same results ^ OS: Ubuntu 18.04 |
Further findings But we still need a way to reset the default. As if I go |
Figured it out >_<. there is a file in your home dir called .vuerc you can set the package manager there.
|
@jackiboy do you know what's the location of that file on Windows? |
|
On Windows it's not know as Home folder, but User folder. |
For the location, I just searched the file name |
There's no |
I thought the .vuerc file wasn't there either, but then I realized it was just hidden. |
for my case i don't have it even inside my hidden files i check it since longtime ago ,even right now i don't have it >ls -a ~
.... .vmodules
.nix-defexpr .vmware
.nix-profile .vscode
.node_repl_history .wget-hsts
.npm .wine
.npmrc .... |
As Windows i think you have it however for linux (deepin-20.2 & ubuntu-20.10) i don't have it ,instead of it i've |
Changing the default package manager.On windows open your {
"useTaobaoRegistry": false,
"packageManager": "yarn",
"latestVersion": "4.5.13",
"lastChecked": 1628973271045,
"presets": {
"vue-ts": {
"useConfigFiles": true,
"plugins": {
"@vue/cli-plugin-typescript": {
"classComponent": false
},
"@vue/cli-plugin-router": {
"historyMode": false
},
"@vue/cli-plugin-vuex": {},
"@vue/cli-plugin-eslint": {
"config": "prettier",
"lintOn": [
"save"
]
}
},
"vueVersion": "2"
}
}
} Selecting the package manager during project creation.Note You can select the package manager you want to use during project creation when using the
|
You can see your Vue config with
You can edit your Vue config object with : So, for setup npm as default Package manager for Vue : More Vue config: |
Version
3.0.0-beta.10
Reproduction link
https://codesandbox.io/s/vue
Steps to reproduce
What is expected?
Option to select the npm or yarn again when creating a project
What is actually happening?
just using the one you initially set, without an option to reset the initial option you selected
After this when creating a new vue project it will always use the package manager you originally set and not give you and option to select npm or yarn again. There is no way to reset this either. Uninstalling the package globally closing/opening the terminal does nothing either.
OS
macOS 10.13.4
The text was updated successfully, but these errors were encountered: