COVID-19-Timeline-Data-Visualizer icon indicating copy to clipboard operation
COVID-19-Timeline-Data-Visualizer copied to clipboard

Couldn't install and run the server locally

Open k-sai-kiranmayee opened this issue 4 years ago • 6 comments

Hello! :)

What is done:

  1. Forked this repo
  2. Cloned it from there
  3. Now tried to install the dependencies

What is seen:

  • Seen while running the command npm install

image

  • To find what dependency was failing, installed one by one, and found that vue-fusioncharts was the one.

image

  • And this is what I get when trying to run the server

image

Versions/Machine configurations:

Node - 8.9.4 npm - 5.6.0 Windows - OS 10

Thank you!

k-sai-kiranmayee avatar May 09 '20 16:05 k-sai-kiranmayee

That's quite detailed! I'm not sure about the npm install error, could it be because of the version of node is outdated? @jieyouxu were you able to reproduce this?

For the error msg while running npm run serve, I think it might be because of the vue-cli-service is not installed or misconfigured on windows. You can try type vue -V in the command line to see if it is correctly installed.

If not, this and this might help!

henryzt avatar May 09 '20 17:05 henryzt

I don't think npm and node version is the problem here. I suspect it's related to vue cli only.

jieyouxu avatar May 09 '20 17:05 jieyouxu

After a closer look, I see that you have two problems:

  1. You can't seem to install vue-fusion-charts. This might be related to Windows? We'll have to diagnose this a bit more to tell.
  2. You can't run npm run serve. This is because you don't have vue-cli-serve installed.

To address (2), we shouldn't ask you to install @vue/cli globally. Instead @henryz00 can you add @vue/cli as a devDependency so developers don't have to install vue globally?

jieyouxu avatar May 09 '20 17:05 jieyouxu

To address (2), we shouldn't ask you to install @vue/cli globally. Instead @henryz00 can you add @vue/cli as a devDependency so developers don't have to install vue globally?

Makes perfect sense. Will do that tomorrow.

henryzt avatar May 09 '20 20:05 henryzt

Hey!! Thank you @henryz00 and @jieyouxu

Actually, for my work, I did install the Vue-CLI globally.

Removed all the node_modules and in the package.json, I removed the vue-fusioncharts and did npm i and viola! the dependencies are correctly installed and I could run the server 🥇 , however, still couldn't get the vue-fusioncharts installed.

  1. You can't seem to install vue-fusion-charts. This might be related to Windows? We'll have to diagnose this a bit more to tell.

Might be @jieyouxu.

And Vue version is 2.9.6

k-sai-kiranmayee avatar May 10 '20 10:05 k-sai-kiranmayee

I've tried to look for more info on this. This doesn't look like a vue-fusioncharts issue, but instead it looks like a npm bug. Specifically, the symptoms presented looks similar to those in https://npm.community/t/crash-npm-err-cb-never-called/858/96. Interestingly, the node and npm versions that you have seem to be the versions that people who use Linux/Unix revert to in order to workaround the "cb() never called" problems.

What's really happening here is that the npm 5.6.0 is swallowing the true cause of the Promise rejection. Possible causes:

  • Insufficient permissions.
  • Too many HANDLEs (a broader concept than file descriptors on Linux/Unix).
  • Your antimalware/antivirus software is blocking NPM from accessing these paths in the filesystem / reading/writing to memory.
  • Somehow a network request is failing due to proxies/firewalls.
  • ... the universe might well be collapsing because the true error cause is swallowed.

@k-sai-kiranmayee If you have the time, perhaps you could try to use a more recent Node version (i.e. latest LTS version) and more recent NPM version (the one that comes with the Node LTS version). I think they patched some error reporting in newer versions. That way, even if it does error out, at least we get to know why and how it failed and so we can try to help you.

jieyouxu avatar Aug 22 '20 14:08 jieyouxu