Code Monkey home page Code Monkey logo

Comments (1)

ccloli avatar ccloli commented on June 3, 2024

Windows 建议使用 WSL 避免未知的问题。

根据上面的错误信息,给几个可能的解决思路:

  1. 使用 yarn 1.x
  2. 有可能是你使用的 yarn 的版本对 node-gyp 处理有问题,在 yarnpkg/berry#5804 有和你相似的问题,可尝试按照 1 降级 yarn,或者手动安装 node-gyp
  3. 确定系统内已经安装了 Python 与 MSVC 构建工具
  4. 有可能是 Windows 路径最大字符数限制导致部分文件不存在,请确认系统已经开启了长路径支持,可确认系统注册表的 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemLongPathsEnabled 一项已配置为 DWORD 1
  5. 有可能是 git 也被最大字符数限制导致 checkout 文件失败,请确认 git 已经开启了长路径支持,可通过执行 git config --global core.longpaths true 解决
  6. 有可能是是 node-gpy 与当前的 Node.js 版本和 Python 版本存在冲突,可尝试参考 node-gyp 的更新文档 手动更新 node-gyp

如果上面的方案均无法解决,建议反馈至 上游的 codesandbox-client 官方 repo。Tango 没有对 codesandbox-client 的依赖作任何修改,因此你遇到的问题应该在官方的仓库也能复现。

from tango.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.