spongeabb
spongeabb

Reputation: 21

Error when trying to checkout folders from github: Unable to create files

I'm still very new github. When i'm trying to checkout some folders from my github repository to my working directory, I'm facing this issue:

run this command from command prompt
git checkout d88a4fce9 *

Error: unable to create file Projects/React/keeper-app-part-1-starting/node_modules/jest-environment-jsdom-fourteen/node_modules/jsdom/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js: Filename too long
Updated 2 paths from 505996af2

Environment:

Operating System: Windows 10 Pro
node : v14.16.0
npm : 6.14.11

Please advise on what should I do next. Thanks in advance!! ^_^

Upvotes: 0

Views: 143

Answers (1)

NeERAJ TK
NeERAJ TK

Reputation: 2695

Please try creating .gitignore in the base directory of the project and adding node_modules to it.

node_modules

Upvotes: 0

Related Questions