尝试设置我的node.js服务器时出现以下错误。我正在使用最新版本的noflo和node.js。还有其他人在Windows上看到NoFlo的这种行为吗?
这是命令和错误:
* C:\ Users \ Johan \ Source \ Repos \ HelloNoFlow>节点node_modules.bin \ noflo-nodejs-init --help
C:\Users\Johan\Source\Repos\HelloNoFlow\node_modules\.bin\noflo-nodejs-init:2 basedir=`dirname "$0"`*
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 Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
这在Windows上对我有效:
.\node_modules\.bin\noflo-nodejs-init --help"
这是因为目标是Shell脚本而不是Javascript。执行node <shell script>
是行不通的。
注意:这同样适用于启动“ noflo-nodejs”。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句