Customizing Astro Blog

Lab 08-14

Sun Feb 12 2023 00:00:00 GMT+0000 (Coordinated Universal Time)

My Second Blog Post

Wrapping up the tutorial today. Loving it, overall.

Issues:

  1. There is a disconnect between astrojs/rss and the node version I have, so, running into a snag with tutorial on Unit 5.
  2. In general, package version disconnect.

What I’ve accomplished

Intro is Astro completed!

What’s next

Back to AI Agentic tutorials on the MS Generative AI Tutorial on Azure

Documented Steps:

  1. Tried upgrading node:<br/> <code> npm —version</code><br/> <code> npm install -g n<</code>br/> <code> n lts</code><br/> <code> sudo n lts</code><br/> <code> sudo n latest</code><br/> <code> sudo n prune</code><br/>
  2. Wrong Node version: ended up with node 21
  3. Reset package cache:looked at errors and added all packages with required versions in package.json. Ran the following in terminal: <code>rm -rf node_modules</code><br/> <code>rm package-lock.json</code><br/> <code>rm yarn.lock</code><br/> <code>npm install</code><br/> <code>npm list —depth=0</code><br/> <code>rm -rf .astro</code><br/> <code>npm run dev</code><br/>
  4. Fix did not work: removing all versions of node and installing specifically:<br/> <code>sudo rm -rf /usr/local/bin/node</code><br/> <code>sudo rm -rf /usr/local/lib/node_modules</code><br/> <code>sudo rm -rf ~/.npm</code><br/> <code>sudo rm -rf ~/.nvm</code><br/>
  5. install a specific version of node:<br/> <code>nvm install 20.3.0</code><br/> <code>node -v<</code>br/>
  6. Astro Islands - Unit 6: Adding interactivity to site (UI framework, Preact, Astro Islands)<br/> <code>npx astro add preact</code><br/>
  7. Updated packages: in package.json
  8. Complete: and, it is all done!