astro/spacesocket — Issue #3: Error installing spacesocket using npm
Author: nikcorg
Created: 2012-01-25 11:43:03+00:00
State: open

I got this error when trying to install Spacesocket:

$ npm install spacesocket
npm http GET https://registry.npmjs.org/spacesocket
npm http 200 https://registry.npmjs.org/spacesocket
npm http GET https://registry.npmjs.org/spacesocket/-/spacesocket-0.0.1.tgz
npm http 200 https://registry.npmjs.org/spacesocket/-/spacesocket-0.0.1.tgz
npm ERR! couldn't unpack /var/folders/az/azVASZuOFBOb+OHtnmj4XljsH5c/-Tmp-/npm-1327491700337/1327491700337-0.40936314035207033/tmp.tgz to /var/folders/az/azVASZuOFBOb+OHtnmj4XljsH5c/-Tmp-/npm-1327491700337/1327491700337-0.40936314035207033

npm ERR! Failed to parse json
npm ERR! Unexpected token }
npm ERR! File: /var/folders/az/azVASZuOFBOb+OHtnmj4XljsH5c/-Tmp-/npm-1327491700337/1327491700337-0.40936314035207033/package/package.json
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm ERR! JSON.parse
npm ERR! JSON.parse This is not a bug in npm.
npm ERR! JSON.parse Tell the package author to fix their package.json file.
npm ERR!
npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "spacesocket"
npm ERR! cwd /Users/finiklind/src/Node/pong
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! file /var/folders/az/azVASZuOFBOb+OHtnmj4XljsH5c/-Tmp-/npm-1327491700337/1327491700337-0.40936314035207033/package/package.json
npm ERR! code EJSONPARSE
npm ERR! message Failed to parse json
npm ERR! message Unexpected token }
npm ERR! errno {}