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
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
Clear your npm cache using:
and then run the command again.
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:
npm cache clean --force
node_modules
folder andpackage-lock.json
file from your age-viewer directory.node_modules
folder andpackage-lock.json
file from the frontend folder in age-viewer directory.node_modules
folder andpackage-lock.json
file from the backend folder in age-viewer directory.npm run setup
npm run start
It works for me like this.
I faced the same kind of error and it usually occurs when we run the
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.