Reputation: 1
I am trying to use hyperledger's blockchain-explorer for my production network. But when following the instructions I got this error when I started running npm start in the blockchain-explorer directory:
************************************************************************************
**************************** Hyperledger Explorer **********************************
************************************************************************************
./start.sh: 24: Syntax error: "(" unexpected
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] app-start: `./start.sh`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] app-start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/conqueror/.npm/_logs/2022-10-05T02_01_23_907Z-debug.log
ERROR: "app-start" exited with 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `run-s build app-start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/conqueror/.npm/_logs/2022-10-05T02_01_23_940Z-debug.log
Can someone tell me how I can fix it. I'm really stuck!
Upvotes: 0
Views: 332
Reputation: 1222
If you are using docker for explorer setup then you have simply set all the paths and config in your cloned repo. And then just need to perform the below commands.
1. docker system prune
2. docker volume prune
3. docker-compose down
4. docker-compose up
Upvotes: 1