I got the annoying error when try to put dependencies via npm on windows. I gave correct name to package.json. Help me !
D:\sitenode>npm install
npm ERR! install Couldn't read dependencies
npm ERR! Error: Invalid version: "0.1"
npm ERR! at Object.module.exports.fixVersionField (C:\Program Files\nodejs\n
ode_modules\npm\node_modules\read-package-json\node_modules\normalize-package-da
ta\lib\fixer.js:183:13)
You need to fix your string with semantic versioning. every version must be come with ..* style (three digits). so I changed your package.json and it's work
{ "name" : "SiteWithNode",
"version" : "0.0.1",
"private" : "true",
"dependencies" : {
"express" : "*.*.*",
"jade" : "*.*.*",
"stylus" : "*.*.*",
"nib" : "*.*.*"
}
}
of course you might want to config (setup to fix certain versions due to compatibility). You might want to take a look at here