Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Gatsby Site Error #87

Open
ahaljh opened this issue Sep 17, 2024 · 1 comment
Open

Create Gatsby Site Error #87

ahaljh opened this issue Sep 17, 2024 · 1 comment

Comments

@ahaljh
Copy link

ahaljh commented Sep 17, 2024

Hi!
I want to create site using command below

npx gatsby new my-blog https://github.com/sungik-choi/gatsby-starter-apple

and it took errors.

Cloning into 'my-blog'...
remote: Enumerating objects: 114, done.
remote: Counting objects: 100% (114/114), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 114 (delta 0), reused 92 (delta 0), pack-reused 0 (from 0)
success Created starter directory layout
info Installing packages...

npm ERR! code 1
npm ERR! The git reference could not be found
npm ERR! command git --no-replace-objects checkout commit=3dde125a391f5557fcc42e0d95899750df4370bf
npm ERR! error: pathspec 'commit=3dde125a391f5557fcc42e0d95899750df4370bf' did not match any file(s) known to git


 ERROR  UNKNOWN

Command failed with exit code 1: npm install --loglevel error --color always --legacy-peer-deps --no-audit



  Error: Command failed with exit code 1: npm install --loglevel error --color always --legacy-peer-deps --no-audit

Could you please give me some guidance in this case?

Thanks.

@NoAgendaReviews
Copy link

NoAgendaReviews commented Jan 3, 2025

npm i -g yarn
yarn install

I faced same errors with latest npm but yarn worked fine. Alternatively, maybe an older version of npm could work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants