I can't npm install.

Home Forums Conduit: mLinux Model I can't npm install.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12501
    Felix Galindo
    Participant

    Hello I am trying to write some nodejs apps. Whenever I try to npm install anything I can’t and get this error:

    npm install serial-port
    npm ERR! network getaddrinfo ENOTFOUND
    npm ERR! network This is most likely not a problem with npm itself
    npm ERR! network and is related to network connectivity.
    npm ERR! network In most cases you are behind a proxy or have bad network settings.
    npm ERR! network
    npm ERR! network If you are behind a proxy, please make sure that the
    npm ERR! network ‘proxy’ config is set properly. See: ‘npm help config’

    npm ERR! System Linux 3.12.27

    Also for some reason I cant ping google.com or anything except ip addresses inside my network.

    #12507
    Jeff Hatch
    Keymaster

    Felix,

    If you don’t have a SIM card installed, have you configured the default route on the Conduit? If not, you will need to configure it in the /etc/network/interfaces file. If you have a SIM card installed, have you gotten PPP up and running and connecting?

    Jeff

    #12630
    Felix Galindo
    Participant

    Seems like I need to add nameserver 8.8.8.8 to /etc/resolv.conf for it to work. I am using lan for internet connnection.

    After a while, resolv.conf goes blank. Why is this ?

    #12634
    Jeff Hatch
    Keymaster

    Felix,

    The resolv.conf is probably getting rewritten on boot. You will need to restore the DNS settings with a script during initialization.

    Jeff

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.