Skip to content

Installing CLI plugins. taking too much time get download. #5144

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

Closed
vikashRG opened this issue Feb 4, 2020 · 14 comments
Closed

Installing CLI plugins. taking too much time get download. #5144

vikashRG opened this issue Feb 4, 2020 · 14 comments

Comments

@vikashRG
Copy link

vikashRG commented Feb 4, 2020

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"
}
}

@haoqunjiang
Copy link
Member

Don't use sudo to create projects.

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

@vikashRG
Copy link
Author

vikashRG commented Feb 5, 2020

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

@haoqunjiang
Copy link
Member

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

@vikashRG
Copy link
Author

vikashRG commented Feb 5, 2020

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.

@haoqunjiang
Copy link
Member

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.

@vikashRG
Copy link
Author

vikashRG commented Feb 5, 2020

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

@haoqunjiang
Copy link
Member

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)

@haoqunjiang
Copy link
Member

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

@vikashRG
Copy link
Author

vikashRG commented Feb 5, 2020

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.

@haoqunjiang
Copy link
Member

Yes I did the same. its still not working.

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

@haoqunjiang
Copy link
Member

Your screenshots were the outputs of vue create

@vikashRG
Copy link
Author

vikashRG commented Feb 5, 2020

Yes I did the same. its still not working.

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

It simply installed all node modules.

@haoqunjiang
Copy link
Member

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.

@vikashRG
Copy link
Author

vikashRG commented Feb 5, 2020

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

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

2 participants