问题是package.json?

发布于 2024-10-31 15:34:23 字数 1294 浏览 1 评论 0原文

这里可能出了什么问题?

/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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

ペ泪落弦音 2024-11-07 15:34:23

这个错误是从声明中抛出的,

_package = require('embedly/package.json')

这是一个错误,我很快就会修复它。

This error is thrown from the statement

_package = require('embedly/package.json')

It's a bug and I'll have it fixed shortly.

寒尘 2024-11-07 15:34:23

实际上,很多事情可能都是错误的,您确定您收到的 .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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文