1

I am working on Windows 10 and I am trying to install vue/cli using this code from its docs

npm install -g @vue/cli

It doesn't work and give back this error npm WARN deprecated [email protected]: request has been deprecated

How can I install the package?

3
  • 3
    It's a warning. So it will install. You'll get used to these kind of warnings in npm/yarn nodejs. Commented Mar 10, 2020 at 21:00
  • 3
    The CLI maintainers will update this. You can safely ignore the warning. See github.com/vuejs/vue-cli/issues/5220 Commented Mar 10, 2020 at 21:10
  • 1
    @user3791775 I'd recommend posting that as an answer, since it's the answer to the question :) Commented Mar 10, 2020 at 22:41

3 Answers 3

1

If you are using a mac and you encounter similar issues, include sudo like this: sudo npm install -g @vue/cli and enter your password when prompted. That should do the trick.

Sign up to request clarification or add additional context in comments.

1 Comment

I added sudo, which "worked" (vue cli will run), but wow at the deprecated and error messages! -- should I be concerned about "warn and ERR!" messages for "gyp" which occur just after the "> node install.js" message that comes out?
0

npm install vue-cli works. But it installs Vue cli 2.x which you can upgrade using vue upgrade

1 Comment

that wont install globally vue-cli
0

I had to do this to fix my Mac install:

  1. Uninstalled vue cli first.

sudo npm uninstall -g @vue/cli

  1. Re-installed and added a switch to deal with some file access issue. Which gives some warnings, but no errors.

sudo npm install -g @vue/cli --unsafe-perm

  1. Also then, installed the dependency in the warning that printed out at the very end of the install in Step 2.

sudo npm install -g [email protected]

After step 3, a "vue --version" command prints "@vue/cli 4.5.4" at this point, but it would do that previously.

So for a real test, I created a new project in the vue ui, which took much longer (30+ seconds) than my original first project created after the original troubled vue cli install.

And that new project works! -- I clicked "serve" in the Tasks window, can see a clean build in the Output window, and the demo page loads at http://localhost:8080/ like it supposed to! Welcome to Your Vue.js App, etc...

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.