无法读取 null 的 属性 'pkg'

Cannot read property 'pkg' of null

我正在使用 Ember 编译一个 github 项目 here。我根据需要安装了 Bower 和 npm。当我在项目目录的 Node.js 命令提示符中尝试 运行 ember build 时,我得到以下信息:

(node:11980) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
(node:11980) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
version: 0.0.44
Cannot read property 'pkg' of null
TypeError: Cannot read property 'pkg' of null
    at Function.Addon.resolvePath (C:\project\node_modules\ember-cli\lib\models\addon.js:251:18)
    at Function.Addon.lookup (C:\project\node_modules\ember-cli\lib\models\addon.js:266:22)
    at C:\project\node_modules\ember-cli\lib\models\project.js:153:34
    at visit (C:\project\node_modules\ember-cli\lib\utilities\DAG.js:23:3)
    at DAG.topsort (C:\project\node_modules\ember-cli\lib\utilities\DAG.js:82:7)
    at Project.initializeAddons (C:\project\node_modules\ember-cli\lib\models\project.js:151:9)
    at Project.eachAddonCommand (C:\project\node_modules\ember-cli\lib\models\project.js:176:10)
    at module.exports (C:\project\node_modules\ember-cli\lib\cli\lookup-command.js:52:13)
    at CLI.<anonymous> (C:\project\node_modules\ember-cli\lib\cli\cli.js:31:26)
    at $$$internal$$tryCatch (C:\project\node_modules\ember-cli\node_modules\rsvp\dist\rsvp.js:470:16)

如果您按照安装步骤操作,您应该能够运行应用程序:

Installation

  • git clone <repository-url> this repository
  • change into the new directory
  • npm install
  • bower install

我试过了,对我有用。

请注意,该应用使用旧的 Ember CLI 版本并且与 Node 7 不兼容。