Windows 常用配置 - 启用长路径

Windows 启用长路径支持

  • 打开注册表编辑器:regedit
  • 找到如下路径:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSytem
  • 找到如下键值:LongPathsEnabled
  • 将值修改为1:默认是0,不启用。

原因

  • 如果Windows本身不允许创建非常长的路径,那么有一些软件的安装(编译安装)等在创建长路径的时候会失败。
error: could not create 'build\lib\superset\static\assets.terser-plugin-cache\content-v2\sha512\00\0f\4e8df4f5ee7921b2270d4e4b41484d51b0f9179c662a55d62128f18abf1686780a3620666b8d0f53752f414c3c1bdf8cafd5de04e357c01b4ec561ab7581': No such file or directory
posted @ 2019-12-04 08:48  duchaoqun  阅读(3978)  评论(0编辑  收藏  举报