纱线:总是使用“纱线添加 – 链接重复”
yarn help add
说:
--link-duplicates create hardlinks to the repeated modules in node_modules
我认为这是关于硬链接的文件,因为文件和模块是一一对应的 ,而linux不支持非根目录的硬链接。 我可能错了,因为node_modules
目录应该真的叫做node_packages
。
-
有没有什么原因,我不想总是使用这个选项来节省磁盘空间?
-
我可以启用
--link-duplicates
作为默认,所以我不必每次input它?