Skip to content

Error while running npm start for local installation #43

@Yesh123456

Description

@Yesh123456

Hello,
I am trying to setup eos-icons-landing page but it require eos-icons-api.

I have followed Running on your machine steps (I am using Linux):

ajyj@ajyj:~$ sudo systemctl status mongodservice
● mongod.service - MongoDB Database Server
   Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2022-03-27 18:46:02 IST; 59s ago
     Docs: https://docs.mongodb.org/manual
 Main PID: 6346 (mongod)
   CGroup: /system.slice/mongod.service
           └─6346 /usr/bin/mongod --config /etc/mongod.conf

Mar 27 10:46:02 ajyj systemd[1]: Started MongoDB Database Server.

Here above command doesnt work so sudo npm install -g grunt-cli works for me.

  • Start the server using npm start

I have done stackoverflow but i am not familiar to remote redis host also this may gives error for mongodb if redis works.

It gives me following error

ajyj@ajyj:~/sem8/eos-icons-api-main$ sudo npm start
[sudo] password for ajyj: 

> eos-icons-api@1.0.0 start /home/ajyj/sem8/eos-icons-api-main
> NODE_PATH=./src ts-node --transpile-only ./src/server.ts

Server started successfully on port:3131
Error: getaddrinfo ENOTFOUND redis-11218.c233.eu-west-1-1.ec2.cloud.redislabs.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! eos-icons-api@1.0.0 start: `NODE_PATH=./src ts-node --transpile-only ./src/server.ts`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the eos-icons-api@1.0.0 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/ajyj/.npm/_logs/2022-03-27T14_13_34_564Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions