Home > Mobile >  "Fixing missing packages and vulnerabilities in age-viewer package when installing from GitHub&
"Fixing missing packages and vulnerabilities in age-viewer package when installing from GitHub&

Time:01-21

I am trying to install the age-viewer from GitHub by following these steps:

  1. Cloning the repository

  2. Changing directory to age-viewer

  3. Running "npm run setup"

However, I am encountering issues with missing packages and 34 vulnerabilities (3 moderate, 22 high, 9 critical). I have attempted to resolve this by running "npm audit fix --force", but it did not work.

I am looking for a solution to fix the missing packages and vulnerabilities in the age-viewer package that I am trying to install from GitHub.

  • Cloning the age-viewer repository from GitHub

  • Changing directory to age-viewer

  • Running "npm run setup"

  • Running "npm audit fix --force" to resolve issues with missing packages and vulnerabilities

CodePudding user response:

This error can arise due to a different reason. You can try some of the following steps to solve this error.

  1. Try using node version 14.16.0.
  2. If you are using WSL then make sure that the node version for your system's parent os and WSl is the same.

I had the same issue while installing, the 1st solution mentioned above worked for me [for ubuntu 22.04].

CodePudding user response:

I encountered a similar error. Here is how I solved it:

  1. Removed node_modules directory from root, frontend and backend folders.
  2. Removed package-lock.json from root, frontend and backend folders.
  3. Ensured node version is in range 14.16.0 - 14.21.2 (I switched to 14.16.0 using nvm)
  4. Cd to root dir of the AGE-Viewer
  5. npm run setup
  6. npm run start

Hope this helps.

  • Related