skip to Main Content

I was recently installing the apache age-viewer and I faced this issue. I have tried most of the things and nothing has worked so far. The error came up when I ran the command

npm run setup

The message before error
The actual error

Can you actually tell me what have I done wrong while setting up.

I deleted and cloned the repository again and ran the same command but faced same error.

I also thought it was a problem of node but it didn’t solve after deleting and reinstalling node.

3

Answers


  1. Clear your npm cache using:

    npm cache clean –force

    and then run the command again.

    Login or Signup to reply.
  2. Make sure you have compatible version of the node which is 14.16.0.

    But if you are already using this version then try these steps:

    1. npm cache clean --force
    2. delete node_modules folder and package-lock.json file from your age-viewer directory.
    3. delete node_modules folder and package-lock.json file from the frontend folder in age-viewer directory.
    4. delete node_modules folder and package-lock.json file from the backend folder in age-viewer directory.
    5. npm run setup
    6. npm run start

    It works for me like this.

    Login or Signup to reply.
  3. I faced the same kind of error and it usually occurs when we run the

    npm run setup
    

    command after running some other command or we clone age-viewer in a non-empty folder.
    You need to clone the age-viewer repository in an empty folder and then follow the steps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search