gpt4 book ai didi

javascript - 如何在 npm 中删除 dedupe 选项

转载 作者:搜寻专家 更新时间:2023-11-01 00:06:53 26 4
gpt4 key购买 nike

不小心,我触发了 npm dedupe,现在我所有的 node_modules 文件夹都被扁平化了。它减小了文件大小,但使查找内容变得更加困难。有没有办法引用这个,回到分层文件系统?提前致谢

最佳答案

来自documentation :

The --legacy-bundling argument will cause npm to install the package such that versions of npm prior to 1.4, such as the one included with node 0.8, can install the package. This eliminates all automatic deduping.

首先删除“node_modules”目录,然后运行 ​​npm install --legacy-building 应该可以完成您想要的操作。

关于javascript - 如何在 npm 中删除 dedupe 选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33596117/

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