Skip to content

Cannot checkout repo on Windows #2

@ghost

Description

$ git clone https://github.com/veloce/lichess-mobile.git .
Cloning into '.'...
remote: Counting objects: 7840, done.
remote: Compressing objects: 100% (5510/5510), done.
emote: Total 7840 (delta 1969), reused 6887 (delta 1500)
Receiving objects: 100% (7840/7840), 8.84 MiB | 3.43 MiB/s, done.
Resolving deltas: 100% (1969/1969), done.
Checking connectivity... done.
fatal: cannot create directory at 'node_modules/gulp/node_modules/vinyl-fs/node_
modules/glob-stream/node_modules/glob2base/node_modules/lodash.findindex/node_mo
dules/lodash.createcallback/node_modules/lodash._basecreatecallback/node_modules
': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

and after setting core.longpaths=true

$ git checkout -f HEAD
Unlink of file 'node_modules/gulp/node_modules/vinyl-fs/node_modules/glob-stream
/node_modules/glob2base/node_modules/lodash.findindex/node_modules/lodash.create
callback/node_modules/lodash._basecreatecallback/node_modules/lodash.bind/node_m
odules/lodash._createwrapper/node_modules' failed. Should I try again? (y/n)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions