Coffee script path.exists来自node.js的已弃用通知

Mar*_*ser 5 deprecated node.js coffeescript

  • OSX 10.6
  • CoffeeScript 1.2.0
  • node.js v0.7.7-pre

我每次运行咖啡命令时都会看到弃用通知.通知是这样的:

path.exists is deprecated. It is now called `fs.exists`.
Run Code Online (Sandbox Code Playgroud)

我知道这种情况正在发生,因为node.js不推荐使用path.exists.看到

https://github.com/joyent/node/pull/2587

我认为会有很多关于此的信息,但我能看到的是一些间接的参考,涉及一个更严重的问题,说它不会被"修复":

https://github.com/jashkenas/coffee-script/issues/2113

我是唯一一个遇到这个问题的人吗?有没有人建议如何让它消失?

Ray*_*nos 6

https://github.com/jashkenas/coffee-script/blob/master/lib/coffee-script/command.js#L323

path.exists在coffeescript源代码中有引用.

请注意,在节点0.6(当前稳定版本)中fs.exists为空,因此很难对其进行干净升级.

我们遇到的问题是相同的源代码在0.6和0.7都不起作用.

我假设我们等待0.8,然后有人会升级coffeescript使用fs.exists并弃用0.6支持