跳到主要内容
CNode

CoffeeScript中compile后显示path.exists is deprecated. It is now called `fs.exists`.是什么原因?

Ffrankyxhl发布于 14 年前最后回复 13 年前
259820

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

查看回复

回复 (2)

X
xqunix#114 年前

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

L
lynnliu#213 年前

怎么解决呢·····

参与回复

登录后即可参与回复。登录