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

npm install fails #4

Open
jscheel opened this issue Mar 10, 2011 · 4 comments
Open

npm install fails #4

jscheel opened this issue Mar 10, 2011 · 4 comments

Comments

@jscheel
Copy link

jscheel commented Mar 10, 2011

log:

npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info fetch http://registry.npmjs.org/soupselect/-/soupselect-0.2.0.tgz
npm ERR! couldn't read package.json in /tmp/npm-1299775291602/1299775291602-0.8720391236711293/contents/package
npm ERR! Error installing [email protected]
npm ERR! Error: Failed to parse json
npm ERR! Unexpected token ]
npm ERR! at jsonParseFail (/usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/read-json.js:89:11)
npm ERR! at /usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/read-json.js:82:14
npm ERR! at P (/usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/read-json.js:62:40)
npm ERR! at cb (/usr/local/lib/node/.npm/npm/0.3.7/package/lib/utils/graceful-fs.js:31:9)
npm ERR! at [object Object]. (fs.js:86:5)
npm ERR! at [object Object].emit (events.js:39:17)
npm ERR! at afterRead (fs.js:843:12)
npm ERR! JSON.parse
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.6.0
npm not ok

@NickTulett
Copy link

If the commit was made, it still hasn't appeared in npm. For now you can download the .tgz from npm repository, extract and edit package.json to remove the trailing comma from the git line and use the npm install {folder} option.

@jscheel
Copy link
Author

jscheel commented Apr 5, 2011

Thanks!

@rjack
Copy link

rjack commented Apr 24, 2011

npm package is still broken. Could you please publish the fix?

@chrisvariety
Copy link

We just published your code (unmodified, with author untouched) as da-soupselect ... so we can actually use it in production. Thanks!

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

4 participants