when I import some existing node.js code into the eclipse workspace, it complains with
Syntax error on token "Invalid Character", delete this token
on the #! /usr/bin/env/node
hashbang line.
How can I tell eclipse to ignore this error?
when I import some existing node.js code into the eclipse workspace, it complains with
Syntax error on token "Invalid Character", delete this token
on the #! /usr/bin/env/node
hashbang line.
How can I tell eclipse to ignore this error?
使用 Nodeclipse 0.7 和 JSHint Integraton,现在普遍的问题是“如何配置 JSHint”。
这个问题我有答案!从 Eclipse .project 文件中删除 jsdt 性质。保持节点性质。
<natures>
<nature>org.nodeclipse.ui.NodeNature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
另请参阅:如何忽略 Eclipse 中的节点 shebang 错误?.
另外,如果您没有节点性质,请安装 nodeclipse 插件。这很棒!