CoffeeScript中compile后显示path.exists is deprecated. It is now called `fs.exists`.是什么原因?
 发布于 13 年前  作者 frankyxhl  5829 次预览  最后一次回复是 12 年前  来自  

coffee --compile test_coffee.coffee
path.exists is deprecated. It is now called `fs.exists`. 如题!

2 回复
xqunix

楼主可能用的是 nodejs 0.7 的版本,在这个版本中, path 模块下的 exists 方法被转移到 fs 模块下了,所以导致了上述的问题。

lynnliu

怎么解决呢·····