Skip to content

Commit db4eb11

Browse files
committed
chore: update to use create-nuxt
1 parent 0d844b5 commit db4eb11

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/components/AppHero.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Open a Nuxt starter on CodeSandbox, StackBlitz or locally to get up and running in a few seconds.
1010
</p>
1111
<CopyButton
12-
text="npx nuxi@latest init my-app"
12+
text="npm create nuxt@latest"
1313
class="mt-4"
1414
/>
1515
</div>

app/components/StarterCard.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ const template = computed(() => {
1010
return props.starter.repo === 'nuxt/starter'
1111
? (props.starter.branch === 'v3')
1212
? ''
13-
: `-t ${props.starter.branch} `
14-
: `-t "${props.starter.repo}#${props.starter.branch}" `
13+
: `-t ${props.starter.branch}`
14+
: `-t "${props.starter.repo}#${props.starter.branch}"`
1515
})
1616
1717
const command = computed(() => {
18-
return `npx nuxi init ${template.value}<${template.value.includes('module') ? 'module' : 'app'}>`
18+
return `npm create nuxt@latest ${template.value}`
1919
})
2020
</script>
2121

0 commit comments

Comments
 (0)