【问题标题】:Grunt doesn't look for node_modules in parent directory? like node doesGrunt 不在父目录中查找 node_modules?像节点一样
【发布时间】:2016-02-16 14:02:59
【问题描述】:

我将我所有的node_modules 都保存在主项目上一层的父目录中。这适用于节点。但似乎 grunt 需要项目目录中的node_modules

有没有办法让 grunt 查看所有父目录以加载它需要的任何模块?

http://runnable.com/U-xEnRK8Dhtr-eNY/output

【问题讨论】:

    标签: node.js gruntjs node-modules


    【解决方案1】:

    似乎这是不可能的,将来也可能不会。

    https://github.com/gruntjs/grunt/issues/696#issuecomment-21634036

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-16
      • 2016-08-15
      • 2016-03-11
      • 1970-01-01
      • 2016-10-02
      • 2018-02-12
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多