Vue-cli: Installing CLI plugins. taking too much time get download.

Created on 4 Feb 2020  Â·  14Comments  Â·  Source: vuejs/vue-cli

Version

4.1.2

Environment info

  System:
    OS: Linux 5.3 Ubuntu 18.04.4 LTS (Bionic Beaver)
    CPU: (4) x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  Binaries:
    Node: 8.10.0 - /usr/bin/node
    Yarn: Not Found
    npm: 3.5.2 - /usr/bin/npm
  Browsers:
    Chrome: 79.0.3945.130
    Firefox: 72.0.2
  npmGlobalPackages:
    @vue/cli: 4.1.2


Steps to reproduce

sudo npm install -g vue

sudo npm install -g @vue/cli

sudo vue create mpproj

What is expected?

The project "mpproj" was created.

What is actually happening?

After choosing parameters this text was showing in console for endless time :

Vue CLI v4.1.2
sparkles Creating project in /home/vikash/mpproj.
âš™ Installing CLI plugins. This might take a while...

loadDep:jsesc -> network - |##########################################################---------------------------------------------------------------------------------------------------------------------|

{
"name": "mpproj",
"version": "0.1.0",
"private": true,
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
"@vue/cli-plugin-eslint": "^4.1.0",
"@vue/cli-service": "^4.1.0"
}
}

Most helpful comment

vue config --set useTaobaoRegistry false this worked for me. Thanks.

All 14 comments

Don't use sudo to create projects.

And your npm version seems quite old, there might be known bugs in it.

I have updated my npm and also tried to create project without sudo. still facing the same issue.

If you successfully updated npm, I think there should be a different error message. What's the output now?

Screenshot from 2020-02-05 15-57-10

no, it's not giving any error message. please find the screenshot.
It keeps loading the plugins.

Looks like an npm (or network) issue.

What about running the npm install --verbose command in the target folder (/home/vikash/myprok)? If it's an npm issue, then this command will produce the same result but with more verbose output. And then we can try to diagnose the problem from the output.

I have run '''npm run --verbose" . now it's still doing the same. Please find the screenshot.
It keeps loading other plugins.

Screenshot from 2020-02-05 16-30-25
Screenshot from 2020-02-05 16-32-55

I mean:

  1. Ctrl + C to stop the command
  2. cd myprok (There's a package.json in the project but the plugins haven't been successfully installed yet.)
  3. npm install --verbose (We are now trying to install the plugins by using npm directly and see if there's any helpful error messages)

Another command to try is vue config --set useTaobaoRegistry false, in case it's caused by the network connectivity to taobao registry.

I mean:

  1. Ctrl + C to stop the command
  2. cd myprok (There's a package.json in the project but the plugins haven't been successfully installed yet.)
  3. npm install --verbose (We are now trying to install the plugins by using npm directly and see if there's any helpful error messages)

Yes I did the same. its still not working.

Yes I did the same. its still not working.

What's the output of npm install --verbose?

Your screenshots were the outputs of vue create

Yes I did the same. its still not working.

What's the output of npm install --verbose?

It simply installed all node modules.

So npm works but vue create doesn't? Then it might be caused by useTaobaoRegistry. Please run vue config --set useTaobaoRegistry false and try again.

vue config --set useTaobaoRegistry false this worked for me. Thanks.

Was this page helpful?
0 / 5 - 0 ratings