这里可能有什么问题?
/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_oembed": "bin/embedly_oembed.js"
, "embedly_objectify": "bin/embedly_objectify.js"
, "embedly_preview": "bin/embedly_preview.js"
}
}
答案 0 :(得分:1)
实际上很多事情都可能出错,你确定收到的.json格式正确吗?在我看来,你错过了双引号,但也许我错了。
答案 1 :(得分:0)
从语句
中抛出此错误_package = require('embedly/package.json')
这是一个错误,我很快就会修复它。