-1

在 \projects 目录中,我按照dagre-d3 Github 页面上的说明输入了$ npm install dagre-d3. 然后我$ make按照构建说明输入了命令。没啥事儿。错误信息make: ** No targets specified and no makefile found. Stop.显示。我从 Github 存储库创建了一个 Makefile,$ make运行时错误为make: ** No rule to make target 'browser.js', needed by 'build/dagre-d3.js'. Stop..

我以前从未使用过 npm,但我的猜测是代码作者使用 .npmignore 遗漏了一些文件

4

1 回答 1

2

Those are two alternative methods of installation, first uses npm only whereas the second uses building from source (also needs npm), requires you to download the git repository and then run make from inside the downloaded repository root.

于 2013-12-11T06:36:46.793 回答