πŸ“… 2023-04-27 β€” Session: Resolved Node.js and NPM Environment Issues

πŸ•’ 17:30–17:40
🏷️ Labels: Node.Js, NPM, Svelte, Cross-Env, Troubleshooting
πŸ“‚ Project: Dev
⭐ Priority: MEDIUM

Session Goal:

The session aimed to troubleshoot and resolve issues related to running JavaScript and Svelte applications locally using Node.js, and to fix errors associated with missing packages in an NPM environment.

Key Activities:

  • Troubleshooting Local Webpage Viewing: Addressed common issues with viewing webpages during development, providing troubleshooting steps and search terms.
  • Running JavaScript Locally: Explained how to execute JavaScript files using Node.js, including installation and command usage.
  • Running Svelte Applications: Provided a step-by-step guide to run Svelte applications with Node.js, covering dependency installation and server initiation.
  • Installing cross-env: Offered instructions for installing the cross-env package to handle environment variables across platforms, resolving related errors.
  • Resolving NPM Errors: Addressed missing package errors and the β€˜cross-env’ command not found issue by suggesting appropriate npm installation commands.

Achievements:

  • Successfully installed and configured Node.js and related packages to run JavaScript and Svelte applications locally.
  • Resolved environment variable handling issues by installing the cross-env package globally and locally as needed.

Pending Tasks:

  • Verify the setup in different environments to ensure cross-platform compatibility.
  • Document the troubleshooting steps and solutions for future reference.