Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7701867
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:05:47+00:00 2026-05-31T23:05:47+00:00

When I type npm install express,It show these tips. soasme@ubuntu:~/Desktop/nodeex$ npm install express npm

  • 0

When I type “npm install express”,It show these tips.

soasme@ubuntu:~/Desktop/nodeex$ npm install express
npm ERR! Error: ECONNREFUSED, Could not contact DNS servers
npm ERR!     at IOWatcher.callback (dns.js:74:15)
npm ERR! Report this *entire* log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>
npm ERR! 
npm ERR! System Linux 2.6.38-8-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "express"
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/soasme/Desktop/nodeex/npm-debug.log
npm not ok

Is there any thing can do help to it?
I was confused about the “DNS server”.
Is this means I cannot resolve the url of update?
The log file is written belows:

info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'express' ]
info using npm@1.0.9
info using node@v0.4.8
verbose config file /home/soasme/.npmrc
verbose config file /usr/local/etc/npmrc
verbose into /home/soasme/Desktop/nodeex [ 'express' ]
verbose cache add [ 'express', null ]
info addNamed [ 'express', '' ]
verbose addNamed [ null, '' ]
verbose GET express
verbose raw, before any munging express
verbose url resolving [ 'http://registry.npmjs.org/', './express' ]
verbose url resolved http://registry.npmjs.org/express
verbose url parsed { protocol: 'http:',
verbose url parsed   slashes: true,
verbose url parsed   host: 'registry.npmjs.org',
verbose url parsed   hostname: 'registry.npmjs.org',
verbose url parsed   href: 'http://registry.npmjs.org/express',
verbose url parsed   pathname: '/express' }
ERR! Error: ECONNREFUSED, Could not contact DNS servers
ERR!     at IOWatcher.callback (dns.js:74:15)
ERR! Report this *entire* log at:
ERR!     <http://github.com/isaacs/npm/issues>
ERR! or email it to:
ERR!     <npm-@googlegroups.com>
ERR! 
ERR! System Linux 2.6.38-8-generic
ERR! command "node" "/usr/local/bin/npm" "install" "express"
verbose exit [ 11, true ]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:05:49+00:00Added an answer on May 31, 2026 at 11:05 pm

    vi /etc/resolv.conf, and add a line “nameserver 8.8.8.8”. Then it work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

type A() = static member B() = () static member B(x) = B() //ERROR:
Error: Type mismatch: cannot convert from Set<ConstraintViolation<capture#1-of ?>> to Set<ConstraintViolation<Class<?>>> My code: public class
What could be wrong here? /opt/local/lib/node/.npm/embedly/0.3.2/package/package.json:1 name: embedly ^ node.js:134 throw e; // process.nextTick
what type could contain a number like 2023209999 in java? do you think that
I am trying to install NPM on OSX Lion, I run this command: curl
type level = [ `Debug | `Info | `Warning | `Error] Can i remove
Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000 What is Kernel protection error?
Type.GetFields() does not return fields in a particular order, but I want to sort
type(3,) returns the int type, while t = 3, type(t) returns the tuple type.
What type of iPhone application file should I use? Before, I was trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.