How to solve Error: ENOENT, stat

How to solve Error: ENOENT, stat

我已经在 Mac OS 中安装了 NPM 和手写笔全局方式,但是当我尝试创建一个新的 file.styl 时,出现了以下错误:

$ stylus -c -w mi-estilo.styl
/usr/local/lib/node_modules/stylus/bin/stylus:640
    if (err) throw err;
               ^
Error: ENOENT, stat 'mi-estilo.styl'
    at Error (native)

我搜索了解决方案,但是。 . .我没有任何成功。

有人可以帮我吗?

错误消息说它希望找到 'mi-estilo.styl'。您似乎期望它应该被创建。查看 stylus --help-c 选项用于 "compress",-w 用于 "watch",没有迹象表明应该创建一些东西。