0

NoFlo文档有一个标题为“定义你的第一个图”的部分,它指出创建一个目录,在该目录中定义一个图,然后调用noflo 该图应该成功执行。

但是,就我而言,我收到语法错误:

tbrannon@tbrannon0:~/Documents/Programming/noflo/my-noflo-example-project$ ./node_modules/.bin/noflo --debug graphs/ShowContents.fbp 

/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo-filesystem/components/ReadFile.coffee:1
(function (exports, require, module, __filename, __dirname) { # The ReadFile c
                                                              ^
SyntaxError: Unexpected token ILLEGAL
  at Module._compile (module.js:439:25)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at ComponentLoader.load (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/ComponentLoader.js:127:26)
  at Network.load (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/Network.js:113:26)
  at Network.addNode (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/Network.js:135:19)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/Network.js:202:37
  at Network.connect (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/Network.js:214:14)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/NoFlo.js:55:22
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/nodejs/ComponentLoader.js:132:16
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/underscore/underscore.js:758:21
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/nodejs/ComponentLoader.js:152:18
  at /usr/local/g7/home/tbrannon/Docments/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/nodejs/ComponentLoader.js:39:16
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/underscore/underscore.js:758:21
  at ComponentLoader.getModuleComponents (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/nodejs/ComponentLoader.js:61:16)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/lib/nodejs/ComponentLoader.js:146:22
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:118:5
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:234:14
  at cb (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/node_modules/slide/lib/async-map.js:48:11)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:234:14
  at cb (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/node_modules/slide/lib/async-map.js:48:11)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:234:14
  at cb (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/node_modules/slide/lib/async-map.js:48:11)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:234:14
  at cb (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/node_modules/slide/lib/async-map.js:48:11)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:234:14
  at cb (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/node_modules/slide/lib/async-map.js:48:11)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:234:14
  at cb (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/node_modules/slide/lib/async-map.js:48:11)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:234:14
  at asyncMap (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/node_modules/slide/lib/async-map.js:27:18)
  at next (/usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:200:5)
  at /usr/local/g7/home/tbrannon/Documents/Programming/noflo/my-noflo-example-project/node_modules/noflo/node_modules/read-installed/read-installed.js:157:7
  at LOOP (fs.js:1356:14)
  at process._tickCallback (node.js:415:13)

tbrannon@tbrannon0:~/Documents/Programming/noflo/my-noflo-example-project$ 
4

1 回答 1

1

此问题是由CoffeeScript 1.7 中的 API 更改引起的。在 NoFlo 的 git 存储库中进行了修复。

该修复程序包含在可通过 NPM 获得的NoFlo 0.4.4中。

于 2014-02-04T16:30:50.820 回答