Windows 常用配置

Windows 启用长路径支持

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

原因

  • 如果Windows本身不允许创建非常长的路径,那么有一些软件的安装(编译安装)等在创建长路径的时候会失败。
error: could not create 'buildlibsupersetstaticassets.terser-plugin-cachecontent-v2sha5120f4e8df4f5ee7921b2270d4e4b41484d51b0f9179c662a55d62128f18abf1686780a3620666b8d0f53752f414c3c1bdf8cafd5de04e357c01b4ec561ab7581': No such file or directory
原文地址:https://www.cnblogs.com/duchaoqun/p/11980690.html