2

I am trying to install node http-proxy with the following:

npm install http-proxy

But I get this error:

npm ERR! Unsupported
npm ERR! Not compatible with your version of node/npm: [email protected]
npm ERR! Required: {"node":"= 0.4.7"}
npm ERR! Actual:   {"npm":"1.0.6","node":"v0.5.0-pre"}
npm ERR!
npm ERR! System Linux 2.6.18-028stab070.14
npm ERR! command "node" "/usr/local/bin/npm" "install" "http-proxy"

It says that it is unsupported with my version of Node.js. But I have v0.5.0 installed which is above the necessary v0.4.7.

Is node http-proxy only compatible with v0.4.7? Any ideas?

2
  • I'm guessing it's the 'v' in 'v0.5.0-pre' but I'm not sure how npm manages all that. Commented May 20, 2011 at 15:33
  • I should point out that the latest version of http-proxy works with 0.6 and up. And there are a ton of fixes for adding proxies and discordant (https front and http back) proxying. Commented Jan 5, 2012 at 18:52

1 Answer 1

4

I'd assume it's because the package.json for that module specifies a specific version of node ("engines": { "node": "= 0.4.7" }) as opposed to saying (>= 0.4.7). By contrast, the package.json for connect says "engines": { "node": ">= 0.4.1 < 0.5.0" }

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.