0

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.

Talha Munir
  • 121
  • 5
  • Sorry, we [can't accept images of code, data or errors](https://meta.stackoverflow.com/a/285557). Post those as *text*, so that we can try to reproduce the problem without having to re-type everything, and your question can be properly indexed or read by screen readers. – Martijn Pieters Mar 15 '23 at 20:39

3 Answers3

0

Clear your npm cache using:

npm cache clean --force

and then run the command again.

0

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.

0

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.

Fahad Zaheer
  • 47
  • 1
  • 7