small cleanup to installation docs
This commit is contained in:
parent
ee95351ee8
commit
289450fce6
1 changed files with 6 additions and 9 deletions
|
@ -29,23 +29,20 @@ yarn create astro
|
|||
|
||||
```bash
|
||||
# Note: Replace "my-astro-project" with the name of your project.
|
||||
|
||||
# npm 6.x
|
||||
npm init astro my-astro-project --template starter
|
||||
|
||||
# npm 7+, extra double-dash is needed:
|
||||
# npm 7+ (extra double-dash is needed)
|
||||
npm init astro my-astro-project -- --template starter
|
||||
|
||||
# yarn
|
||||
yarn create astro my-astro-project --template starter
|
||||
|
||||
# Import Astro project from Github
|
||||
# Using a third-party template
|
||||
npm init astro my-astro-project -- --template [GITHUB_USER]/[REPO_NAME]
|
||||
|
||||
# Import Astro from nested paths:
|
||||
npm init astro my-astro-project -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example
|
||||
# Using a third-party template, inside a repo
|
||||
npm init astro my-astro-project -- --template [GITHUB_USER]/[REPO_NAME]/path/to/template
|
||||
```
|
||||
|
||||
After `create-astro` scaffolds out your project, you would need to install the projects dependencies. To do this, enter:
|
||||
After `create-astro` scaffolds out your project, remember to install your projects dependencies using npm or your package manager of choice. In this example, we'll use npm:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
|
|
Loading…
Reference in a new issue