question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create command with starters is broken

See original GitHub issue

Description

When following instructions from starters, the command does not work as expected.

Not sure what needs to be updated, docs or code?

Steps to reproduce

npm install --global @gridsome/cli
gridsome create new-site https://github.com/gridsome/gridsome-starter-blog.git

Expected result

It should create a new Gridsome installation after cloning the starter repo.

Actual result

create.js is inserting the value of the starter parameters within a Github URL:

// @gridsome/cli/lib/command/create.js
// line 23
const url = `https://github.com/${starter}.git`

And the command results, naturally, in an error:

❯ Clone https://github.com/https://github.com/gridsome/gridsome-starter-blog.git.git
❯ Update project package.json
❯ Install dependencies
Error: Failed to clone repository
    at Object.task (/usr/local/lib/node_modules/@gridsome/cli/lib/commands/create.js:35:17)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Environment


Libs:
- gridsome version: 0.7.3
- @gridsome/cli version: 0.2.3

 
For Tooling issues:
- Node version: 12.10.0  
- Platform:  Mac

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nishantwrpcommented, Apr 24, 2020

@danrocha Can you tell how did you fix this problem. I am experiencing the same issue!

0reactions
dgkncacommented, Dec 30, 2020

It works when using git bash instead of command prompt.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question #699833 “Impossible to create starter in Ubuntu 20.04”
I tried create a simple starter for displaying a text file. Title=Test1; File=/home/fck/Documents/TestArronax.
Read more >
Command Prompt Broken in Windows 10 - Microsoft Community
In Windows 10, when I run "cmd", it opens the black window and closes it right away. Even running a .bat script doesn't...
Read more >
yii2 starter kit console commands doesn't work - Stack Overflow
I have yii2 starter kit application and I am trying to run console commands but they're not working. For example I am staying...
Read more >
Skript; Starter kit code I made... but it's broken - Minehut Forums
I created this skript and no matter what I do it gives me errors can someone please help? okay so explanation: this script...
Read more >
is there a way to get the starter sword back? : r/starbound
besides admin commands you could just set up a new character, drop off their broken broadsword at some chest, note the coordinates, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found