问题是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 :
包.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"
}
}
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": "[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"
}
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个错误是从声明中抛出的,
这是一个错误,我很快就会修复它。
This error is thrown from the statement
It's a bug and I'll have it fixed shortly.
实际上,很多事情可能都是错误的,您确定您收到的 .json 格式正确吗?在我看来你错过了双引号,但也许我错了。
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.