8

I'm using Dropbox on daily basis and put my programming projects in there. It works great, but once I got many projects my /node_modules dir's are putting a struggle on Dropbox. It's syncing process starts to be slow and it eats up CPU time.

Is there any way to do a selective sync based on directory name or a mask pattern? Would be nice to have to a .gitignore equivalent to configure.

Any 3rd party software for that task?

4

2 回答 2

0

有一种选择性同步的方法,但我不相信它有任何像你描述的高级规则:

https://www.dropbox.com/help/175/en

于 2013-01-08T22:04:24.820 回答
0

2解决这个问题的方法:

  1. 您可以将node_modules项目目录放在文件树中。例如:
    Project dir:c:/prj/myProjWrapper/myProj
    在这里的c:/prj/myProjWrapperputpackage.json和makenpm install中,NodeJS会递归地找到它。

  2. 仅限 Win 和 Linux,不适用于 Mac!在项目目录中创建.ds_store文件夹(它不通过 Dropbox 同步)。投入package.json其中并做npm installNODE_PATH=./.ds_store/node_modules;.启动 NodeJS 时必须设置

于 2016-09-21T22:09:41.480 回答