#First hurdle

1 messages · Page 1 of 1 (latest)

vivid pelican
#

Hi everyone,

I’m keen to use Astro but I keep falling at the first hurdle….

I know the very basics of using the terminal, and already have a Hugo site on Netlify. I’d like to try and achieve this with an Astro blog. I'm running node v18.2.0 and npm v8.9.0.

I’ve found a theme which I’d like to replicate - it’s this one: https://astro.build/themes/details/modern-personal/ - I clicked on Get Started which took me to the GitHub page, and downloaded the files to my local GitHub folder. So far, so god.

I’m just not sure what to do next! I tried following these instructions: https://docs.astro.build/en/install/auto/ - but I’m not sure whether they all apply to me as I don’t want to create a new project from scratch, I just want to start modifying the theme I’ve already downloaded. From my understanding, I need to install Astro on my laptop but I don't want to create a new project - but the steps indicate that it's trying to do just that?

If I attempt step 1 (npm create astro@latest), I’m not sure what folder I should be in (root? GitHub folder? The one containing the above project (I’ve called this folder “Astro”)? Or should I create a new folder?). In all these cases the message then comes up: Where should we create your new project? But I don’t want a new project, I just want to work on the one I’ve got. But there’s a suggested folder mentioned (latest one says ./minor-motion but I don’t know where that’s actually going to be), and then it asks me how I’d like to start your new project (include sample files, blog, or empty).

If I select any of these, it throws errors. Attached a terminal screenshot, key text is:

npm ERR! code 1
npm ERR! path /Users/philwhitehouse
npm ERR! command failed
npm ERR! command sh -c create-astro

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/philwhitehouse/.npm/_logs/2023-02-12T04_14_22_483Z-debug-0.log

…and I don’t know how to retrieve those error logs…

Help please!

lusty mica
#

In your terminal change your working directory to the project you downloaded, then run npm i thiss will install necessary dependencies for you to run & build your project

#

After that run npm run dev and open the browser and visit locolhost:3000 to see you site

#

FYI, running npm create asteo@latest will create a new project from scratch