我最近安装了node.js和phonegap(phonegap与这个问题无关,可以是任何东西,如下所示)。 之后,我开始在Windows中漫游configuration文件中遇到麻烦:它会卡住很长一段时间,然后以“部分同步的用户configuration文件”login。
事件日志显示,这是因为path中的256个限制。 其中一个罪魁祸首:
[serverpath excluded for privacy.Its length is 38 characters] \AppData\Roaming\npm\node_modules\phonegap\node_modules\cordova\node_modules\plugman\node_modules\npm\node_modules\request\node_modules\form-data\node_modules\combined-stream\node_modules\delayed-stream\lib\delayed_stream.js
(事件代码1509,“文件名或扩展名太长”)
我的选项非常有限:我无法更改服务器path,也不能排除我的帐户同步。
我可以吗:
安装程序:Windows 7 x86。 服务器是Windows 2008 R2。
对于任何可能遇到这个问题的人:
我最终使用的一个可能的解决方法是从配置文件同步中排除指定的子文件夹(在我的情况下,AppData \ Roaming \ npm)。
这可以通过编辑组策略中的“漫游配置文件中的排除目录”设置来完成。
更多信息可以在这里找到: http : //support.microsoft.com/kb/814592