Problem is package.json?
What could be wrong here?
/opt/local/lib/node/.npm/embedly/0.3.2/package/package.json:1
"name": "embedly
^
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
13 Apr 02:23:06 - [ERROR] SyntaxError
SyntaxError: Unexpected token :
package.json
{ "name": "embedly"
, "version": "0.3.2"
, "description": "Embedly client library for node"
, "homepage": "https://github.com/embedly/embedly-node"
, "keywords": []
, "author":
{ "name": "Bob Corsaro"
, "email": "bob@embed.ly"
, "url": "http://www.google.com/profiles/rcorsaro"
}
, "repository":
{ "type": "git"
, "url": "git://github.com/embedly/embedly-node"
}
, "bugs": { "web": "http://github.com/embedly/embedly-node/issues/" }
, "directories":
{ "doc": "./docs"
, "lib": "./lib"
, "test": "./test"
}
, "dependencies": {"hashish": "", "qs": ""}
, "devDependencies": {"vows": ">= 0.5.6"}
, "main": "./lib/embedly.js"
, "scripts": { "test": "vows" }
, "bin":
{ "embedly_oem开发者_如何转开发bed": "bin/embedly_oembed.js"
, "embedly_objectify": "bin/embedly_objectify.js"
, "embedly_preview": "bin/embedly_preview.js"
}
}
This error is thrown from the statement
_package = require('embedly/package.json')
It's a bug and I'll have it fixed shortly.
Many things could be wrong there actually, are you sure the .json you receive is formatted correctly? It looks to me that you're missing a double quote, but maybe I'm wrong.
精彩评论