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

[gatsby-cli] Can't create project using 1.1.30 #3702

Closed
aoc opened this issue Jan 25, 2018 · 5 comments
Closed

[gatsby-cli] Can't create project using 1.1.30 #3702

aoc opened this issue Jan 25, 2018 · 5 comments

Comments

@aoc
Copy link
Contributor

aoc commented Jan 25, 2018

Description

Can't create a basic project using gatsby new gatsby-site on 1.1.30 version. Previous version (1.1.29) works fine.

Environment

Gatsby version: 1.1.30
Node.js version: 9.4.0
Operating System: macOS High Sierra 10.13.2
Git version: 2.16.1

Actual result

❯ gatsby new gatsby-site
info Creating new site from git: shortcut
fatal: repository 'shortcut' does not exist
error Command failed: git clone shortcut gatsby-site --single-branch


  Error: Command failed: git clone shortcut gatsby-site --single-branch

  - index.js:236 Promise.all.then.arr
    [lib]/[gatsby-cli]/[execa]/index.js:236:11

Expected behavior

Creates basic project without errors.

Steps to reproduce

1. Run gatsby new gatsby-site on an empty directory

@rluncasu
Copy link

Same thing here for gatsby new gatsby-site. In addition, running gatsby new with a github url also results in a fatal error:

$ gatsby new tutorial-part-one https://github.com/gatsbyjs/gatsby-starter-hello-world
info Creating new site from git: https
fatal: repository 'https' does not exist
error Command failed: git clone https tutorial-part-one --single-branch

@KyleAMathews
Copy link
Contributor

Hmmm sorry folks — will fix this real quick.

aoc referenced this issue Jan 25, 2018
* use ssh git urls for starters

use `hosted-git-info`'s ssh url. This allows starters from private repos
to work while still supporting the defaults and public starters.

* Respect the string format that people passed in
@aoc
Copy link
Contributor Author

aoc commented Jan 25, 2018

thanks @KyleAMathews I think you've already found the problem. But I tried to review the changes and made a comment here:

466aad7#r27115011

KyleAMathews added a commit that referenced this issue Jan 26, 2018
@zachgibson
Copy link

I can successfully install tutorial-part-one but once I run gatsby develop I get errors such as:

Failed to require /Users/zacharygibson/repos/tutorial-part-one/html.js
Module not found: Error: Cannot resolve module 'config' in /usr/local/lib/node_modules/gatsby/dist/isomorphic

@abhinavjonnada82
Copy link

All this can be solved........... By two simple steps actually three:
1.) Open GIT BASH
2.) Type the command: gatsby new gatsby-site https://github.com/gatsbyjs/gatsby-starter-hello-world...
3.) And from your TERMINAL type gatsby develop

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

5 participants