I can't npm install.
- This topic has 3 replies, 2 voices, and was last updated 8 years, 6 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › Conduit: mLinux Model › I can't npm install.
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.
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
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 ?
Felix,
The resolv.conf is probably getting rewritten on boot. You will need to restore the DNS settings with a script during initialization.
Jeff