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.

VueCLI wont install.

See original GitHub issue

Version

4.5.6

Environment info


Environment Info:

  System:
    OS: Windows 10 10.0.18362
    CPU: (4) x64 Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
  Binaries:
    Node: 14.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Spartan (44.18362.449.0)
  npmGlobalPackages:
    @vue/cli: Not Found


Steps to reproduce

yarn global add @vue/cli-init

vue init nuxt-community/express-template test

What is expected?

To make the template for nuxt vuejs

What is actually happening?

it says vuecli it’s not installed even tough i had just installed it.

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
fangbinweicommented, Oct 26, 2020

You install @vue/cli by both yarn and npm. If the output of vue --version is 4.5.6, It means you executed vue from npm global bin path.

So, try to run npm uninstall @vue/cli -g and use the version installed by yarn. @Wishingirl

0reactions
fangbinweicommented, Oct 26, 2020

I guess you install @vue/cli by npm, but the warning message reminds you to install @vue/cli-init by yarn global add. It has been fixed in 4.5.7, #5871. After upgrade @vue/cli, the warning message will remind you to use npm install -g

Although Vue CLI will try to require module from both yarn global path and npm global path by dependencies import-global, global-dirs@0.1.1. It seems the global-dirs@0.1.1 give the wrong yarn global path(fixed in 1.0.0 sindresorhus/global-dirs#3 )

Test in my windows, my yarn global path is %LOCALAPPDATA%\Yarn\Data\global, but the value return by global-dirs@0.1.1 is %LOCALAPPDATA%\Yarn\config\global.

Since @vue/cli@^4.5.7 can output more accurate warnings message, import-global should be removed or try to upgrade global-dirs. Still need to be considered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install @vue/cli 3 on Windows 10 - Stack Overflow
On Windows 10: Open start (Win Key) -> Type: cmd -> Right-Click: Command Prompt -> Select: Run as Administer -> Type: npm install...
Read more >
Installing @vue/cli globally using npm causes errors ... - GitHub
Running npm install -g @vue/cli displays multiple warnings. Then, running npm list -g --depth=0 lists the global packages fine but then shows ...
Read more >
Vue CLI won't install (npm install -g @vue/cli won't work)
1) You have two ways to install Vue CLI2) I tried to use "npm install -g @ vue / cli " but It...
Read more >
Troubleshooting - Vue CLI
This document covers some common Vue CLI issues and how to resolve them. You should always follow these steps before opening a new...
Read more >
npm install vue cli
2005 cadillac escalade blower motor won t turn off ... Install vue cli. sudo npm install --global vue-cli check vue cli. vue --version...
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