CoffeeScript中compile后显示path.exists is deprecated. It is now called `fs.exists`.是什么原因?
发布于 12 年前 作者 frankyxhl 5234 次浏览 最后一次编辑是 8 年前

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

2 回复

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

怎么解决呢·····

回到顶部