Skip to content
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

Vue-cli doesn't actually install? #7011

Closed
Tsaukpaetra opened this issue Feb 25, 2022 · 3 comments
Closed

Vue-cli doesn't actually install? #7011

Tsaukpaetra opened this issue Feb 25, 2022 · 3 comments

Comments

@Tsaukpaetra
Copy link

Version

5.0.1

Reproduction link

[None](Can't create a project, thus there is no code to reproduce)

Environment info

Unable to comply, vue-cli doesn't get installed.
Running Windows 11 22000.527 (21H2)

Steps to reproduce

C:\>yarn global add @vue/cli
yarn global v1.22.15
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "@vue/cli@5.0.1" with binaries:
      - vue
Done in 4.92s.

C:\>vue ui
'vue' is not recognized as an internal or external command,
operable program or batch file.

C:\>where vue
INFO: Could not find files for the given pattern(s).

C:\>

What is expected?

Installing Vue-cli

What is actually happening?

Things apparently get installed, but... aren't?


This is a clean Windows 11 install, installed node-v16.14.0-x64, enabled Yarn via corepack enable and then attempted to install Vue ui.
I'm not sure where I went wrong, things have apparently changed since I last worked with this early 2020, so maybe I'm not following instructions correctly.

@YFengFly
Copy link

YFengFly commented Mar 9, 2022

I think it's a matter of environment variables: environment variables may not be automatically configured when yarn is installed.
I recommend that you reinstall yarn as an administrator, or add environment variable for yarn.

@Tsaukpaetra
Copy link
Author

I'm not sure how environment variables come into play. Since I can run the yarn command, that's clearly already been handled, has it not? As far as I remember the documentation mentioning, you just need the path for it added and Bob's your uncle.

Why should I be required to faff about with environment variables anyways? This should have been a solved problem since Windows NT...

@LinusBorg
Copy link
Member

I'm not sure how environment variables come into play. Since I can run the yarn command, that's clearly already been handled, has it not?

Not necessarily. yarn will put the global package some place, and then add a symlink in a location that has to be within your terminal's PATH (that how it's on OSX at least).

That yarn can be run doesn't mean that whatever you install globally with it is also within the PATH of your terminal. Not having any experience with yarn on windows I can't provide you any further hints beyond that.

This is not something we can influence within this project, it's a problem of configuration with your machine: it's not about @vue/cli, it's about how the tool you use to install @vue/cli makes it executable - or fails to do so on your machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants