2

I'm trying to run the AGCloud project on windows 10. the project is built with React JS.

I cloned the main branch of the repository in my system, and then installed dependencies in both front-end and back-end using npm i command and then moved to the root directory.

and then I executed the following command:

npm start

I was expecting that the project will be compiled successfully

but I encountered the following error:

image showing error

this is error in the front-end.

9 Answers9

2

You are getting this error because there are 3 different package.json files, and you haven't run npm i in the root directory.

The quicker way to do this could be that run npm run setup You can check package.json file that's located in the root directory, there setup command automatically cd into each directory to install node modules, Then run npm run start and it should work fine.

Sarthak
  • 380
  • 7
0

you can verify if everything is OK in the packages running:

npm audit fix --force 
Marcos Silva
  • 115
  • 5
0

First run "npm install".

It installs all the required dependencies used by the project on your system.

Then run "npm start".

If it doesn't work, try "npm run dev".

Also make sure to use the right configurations for the project.

0

If the AGCloud project fails to compile you should check Node.js and npm versions alongside verifying dependencies and upgrade or fix dependencies with vulnerabilities and install the stable version.

0

Firstly, ensure you have the correct version of npm required for the installation of AGE Viewer.

Finally, you have to be in the AGE Viewer directory to run the commands associated with installation and starting up AGE Viewer i.e you should run npm run start in the AGE Viewer directory not the root directory.

Kindly revisit the docs for clarity.

Tito
  • 289
  • 8
0

Verify if you have the correct version of npm installed. Also check if all the dependencies have been installed.

You can refer to this guide: Age-viewer

Prachi
  • 39
  • 3
0

What I can understand is there is an error in Node or NPM versions. Firstly you can check that the versions you have installed are compatible with the project by using these commands:

    node -v 
    npm -v

These will display the versions that you have installed on your local machine in the terminal.

If the versions are incompatible you can uninstall them and reinstall by running npm install

Finally, if the issue persists you can try cleaning the cache by using

npm cache clean --force and use npm install right after. This should help.

If these steps don't help do try consulting the project documentation for your particular issue.

Shanzay
  • 19
  • 3
0

First Run the following command to remove all the data present in the cache folder.

npm cache clean --force

Then run the following command to install all the required dependencies.

npm install

Also make sure that the node version that you have is 14.6 to be compatible with AGE-Viewer because this was mentioned in the documentation.

Omar Saad
  • 349
  • 3
  • 8
0

If you have tried all the answers above and it still isn't working then try the following:

# linux
export NODE_OPTIONS=--openssl-legacy-provider
# windows
set NODE_OPTIONS=--openssl-legacy-provider

You need to run this in your terminal before running the project and also do a fresh install of the packages before rerunning it.