reactjsapache-ageagens-graph

error in npm start while running AGCloud Project in windows


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.


Solution

  • 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.