【发布时间】:2016-02-16 14:02:59
【问题描述】:
我将我所有的node_modules 都保存在主项目上一层的父目录中。这适用于节点。但似乎 grunt 需要项目目录中的node_modules。
有没有办法让 grunt 查看所有父目录以加载它需要的任何模块?
【问题讨论】:
标签: node.js gruntjs node-modules
我将我所有的node_modules 都保存在主项目上一层的父目录中。这适用于节点。但似乎 grunt 需要项目目录中的node_modules。
有没有办法让 grunt 查看所有父目录以加载它需要的任何模块?
【问题讨论】:
标签: node.js gruntjs node-modules
似乎这是不可能的,将来也可能不会。
https://github.com/gruntjs/grunt/issues/696#issuecomment-21634036
【讨论】: