我正在使用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)
答案 0 :(得分:0)
如果您按照安装步骤操作,则应该能够运行该应用程序:
安装
git clone <repository-url>
此存储库- 更改为新目录
npm install
bower install
我试过了,它对我有用。
请注意,该应用使用旧的Ember CLI版本,与Node 7不兼容。