My Second Blog Post
Wrapping up the tutorial today. Loving it, overall.
Issues:
- There is a disconnect between astrojs/rss and the node version I have, so, running into a snag with tutorial on Unit 5.
- 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:
- 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/>
- Wrong Node version: ended up with node 21
- 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/>
- 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/>
- install a specific version of node:<br/> <code>nvm install 20.3.0</code><br/> <code>node -v<</code>br/>
- Astro Islands - Unit 6: Adding interactivity to site (UI framework, Preact, Astro Islands)<br/> <code>npx astro add preact</code><br/>
- Updated packages: in package.json
- Complete: and, it is all done!