這裏有什麼問題?問題是package.json?
/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": "[email protected]"
, "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_oembed": "bin/embedly_oembed.js"
, "embedly_objectify": "bin/embedly_objectify.js"
, "embedly_preview": "bin/embedly_preview.js"
}
}
它看起來像缺少雙引號,但它有助於向我們展示package.json文件。 – yojimbo87 2011-04-13 08:55:58
我用json文件更新了帖子。 – fancy 2011-04-13 11:42:53