Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not install node-validator via npm #15

Closed
craigcosmo opened this issue May 24, 2011 · 4 comments
Closed

can not install node-validator via npm #15

craigcosmo opened this issue May 24, 2011 · 4 comments

Comments

@craigcosmo
Copy link

"npm install validator" will not work.

I'm using npm 0.3.18
node 0.4.7

@chriso
Copy link
Collaborator

chriso commented May 24, 2011

Can you provide some more information?

Does NPM output an error? If so, what's the output?

You may need to run npm with root privileges. Try running sudo npm install validator

@craigcosmo
Copy link
Author

the error:

[root@localhost nodejs]# npm install validator
npm info it worked if it ends with ok
npm info using npm@0.3.18
npm info using node@v0.4.7
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 http://github.com/isaacs/npm/issues
npm ERR! or email it to npm-@googlegroups.com
npm ERR! Just tweeting a tiny part of the error will not be helpful.
npm ERR! System Linux 2.6.18-238.9.1.el5
npm ERR! argv { remain: [ 'validator' ],
npm ERR! argv cooked: [ 'install', 'validator' ],
npm ERR! argv original: [ 'install', 'validator' ] }
npm not ok

@chriso
Copy link
Collaborator

chriso commented May 24, 2011

Doesn't look like a validator-specific issue. Try installing another library, e.g. npm install express

@craigcosmo
Copy link
Author

yep the problem is from my end. Thanks for helping!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants