package.json not compatible with npm 0.3.0+
opened this issue · comments
The following error is from npm 0.3.12 on node 0.4.1
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse Note that package.json must be actual JSON, not
npm ERR! JSON.parse just a JavaScript object.
npm ERR! JSON.parse
npm ERR! JSON.parse This changed in npm 0.3.0, and is not a bug in npm.
npm ERR! JSON.parse Tell the package author to fix their package.json file.
npm ERR! JSON.parse
npm ERR! System Darwin 10.5.0
npm ERR! argv { remain: [ 'sinon-nodeunit' ],
npm ERR! argv cooked: [ 'install', 'sinon-nodeunit' ],
npm ERR! argv original: [ 'install', 'sinon-nodeunit' ] }
Hmm, I recently fixed this error: sinonjs/sinon@fb7233c
What version of Sinon where you trying to install?
I had installed nodeunit 0.5.0 and sinon 1.0.2 separately with
npm install nodeunit
npm install sinon
then the following failed, attempting to load sinon-nodeunit@0.1.1
npm install sinon-nodeunit
I notice an extra comma in package.json after "url" in "licenses"
That's probably it.
Sorry, I missed the fact that we were talking about sinon-nodeunit and not sinon... Just pulled a fix for it and pushed 0.1.2 to npm.