gpt4 book ai didi

node.js - Grunt 不在父目录中查找node_modules?就像 Node 一样

转载 作者:太空宇宙 更新时间:2023-11-04 01:03:53 24 4
gpt4 key购买 nike

我将所有 node_modules 保存在主项目上方一级的父目录中。这与 Node 配合得很好。但似乎 grunt 需要项目目录中的 node_modules

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

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

最佳答案

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

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

关于node.js - Grunt 不在父目录中查找node_modules?就像 Node 一样,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24854215/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com