【问题标题】:How to solve Error: ENOENT, stat如何解决错误:ENOENT,stat
【发布时间】:2015-07-08 07:44:38
【问题描述】:

我已经在 Mac OS 中安装了 NPM 和 stylus 全局方式,但是当我尝试创建 new-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)

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

有人可以帮我吗?

【问题讨论】:

    标签: node.js macos npm stylus


    【解决方案1】:

    错误消息表明它希望找到“mi-estilo.styl”。您似乎期望它应该被创建。查看stylus --help-c 选项用于“压缩”,-w 用于“监视”,没有迹象表明应该创建某些东西。

    【讨论】:

      猜你喜欢
      • 2015-01-05
      • 1970-01-01
      • 1970-01-01
      • 2014-09-23
      • 2014-12-23
      • 2021-11-29
      • 1970-01-01
      • 2015-10-10
      • 1970-01-01
      相关资源
      最近更新 更多