Gil
Gil

Reputation: 97

error when trying to install body-parser

im trying to install body-parser into my project but i get an error:

npm install body-parser  --registry http://registry.npmjs.org/ 
npm http 304 http://registry.npmjs.org/raw-body
npm ERR! error installing [email protected]
npm ERR! Error: No compatible version found: raw-body@'>=1.1.2- <1.2.0-'
npm ERR! Valid install targets:
npm ERR! ["0.0.1","0.0.2","0.0.3","0.1.0","0.1.1","0.2.0","1.0.0","1.0.1","1.1.0"]

im using npm 1.1.4 , node 0.6.12 on Ubunto.

Upvotes: 1

Views: 5068

Answers (2)

magicmaster85
magicmaster85

Reputation: 1

Please try

npm config set proxy null

Upvotes: -2

DeckyFx
DeckyFx

Reputation: 1308

I check https://github.com/expressjs/body-parser/blob/master/package.json, the latest version is 1.6.5 that require node version >= 0.8

but on your console, you request body-parser version 1.0.2,

so i think this is problem with your node version, try to install newer version on node, or use nave to manage your node version

Upvotes: 4

Related Questions