From 72067c9cb35232d13194ee55d20b9e66f010d438 Mon Sep 17 00:00:00 2001 From: Zunaid Hassan <67002737+zunaid-hassan@users.noreply.github.com> Date: Sat, 25 Oct 2025 12:32:29 +0800 Subject: [PATCH 1/4] README: Separate NPM and Jest installation instructions Separate NPM and Jest setup steps to prevent missed steps. --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ef7c657c439..24eb3463d05 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,8 @@ If you have a suggestion to improve an exercise, an idea for a new exercise, or 1. Fork and clone this repository. To learn how to fork a repository, see the GitHub documentation on how to [fork a repo](https://docs.github.com/en/get-started/quickstart/fork-a-repo). - Copies of repositories on your machine are called clones. If you need help cloning to your local environment you can learn how from the GitHub documentation on [cloning a repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository-from-github/cloning-a-repository). -1. Before you start working on any exercises, you should first ensure you have the following installed: - - - **NPM**. You should have installed NPM already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, go back to the installation lesson and install Node with NVM by following the instructions there. - - **Jest**. After cloning this repository to your local machine and installing NPM, go into the newly created directory (`cd javascript-exercises`) and run `npm install`. This will install Jest and set up the testing platform based on our preconfigured settings. (Note: if you get warnings that packages are out of date or contain vulnerabilities, you can safely ignore them for these exercises.) - +1. **NPM Installation:** You should have installed NPM already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, go back to the installation lesson and install Node with NVM by following the instructions there. +1. **Jest Installation:** After cloning this repository to your local machine and installing NPM, go **into** the newly created directory (`cd javascript-exercises`) and run `npm install`. This will install Jest and set up the testing platform based on our preconfigured settings. (Note: if you get warnings that packages are out of date or contain vulnerabilities, you can safely ignore them for these exercises.) 1. Each exercise includes the following: - A markdown file with a description of the task, an empty (or mostly empty) JavaScript file, and a set of tests. From ce5438e3f61f54eb677ee55b644d736077286371 Mon Sep 17 00:00:00 2001 From: Zunaid Hassan <67002737+zunaid-hassan@users.noreply.github.com> Date: Mon, 27 Oct 2025 18:21:26 +0800 Subject: [PATCH 2/4] Update README.md Co-authored-by: mao-sz <122839503+mao-sz@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24eb3463d05..5f6cd5243e1 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ If you have a suggestion to improve an exercise, an idea for a new exercise, or 1. Fork and clone this repository. To learn how to fork a repository, see the GitHub documentation on how to [fork a repo](https://docs.github.com/en/get-started/quickstart/fork-a-repo). - Copies of repositories on your machine are called clones. If you need help cloning to your local environment you can learn how from the GitHub documentation on [cloning a repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository-from-github/cloning-a-repository). -1. **NPM Installation:** You should have installed NPM already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, go back to the installation lesson and install Node with NVM by following the instructions there. +1. **npm installation:** You should have installed npm already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, go back to the installation lesson and install Node with NVM by following the instructions there. 1. **Jest Installation:** After cloning this repository to your local machine and installing NPM, go **into** the newly created directory (`cd javascript-exercises`) and run `npm install`. This will install Jest and set up the testing platform based on our preconfigured settings. (Note: if you get warnings that packages are out of date or contain vulnerabilities, you can safely ignore them for these exercises.) 1. Each exercise includes the following: From 592acad2cd95a46a16a6f3e83fe3c44fc4038729 Mon Sep 17 00:00:00 2001 From: Zunaid Hassan <67002737+zunaid-hassan@users.noreply.github.com> Date: Mon, 27 Oct 2025 18:22:04 +0800 Subject: [PATCH 3/4] Update README.md Co-authored-by: mao-sz <122839503+mao-sz@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5f6cd5243e1..f02461d34b6 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you have a suggestion to improve an exercise, an idea for a new exercise, or 1. Fork and clone this repository. To learn how to fork a repository, see the GitHub documentation on how to [fork a repo](https://docs.github.com/en/get-started/quickstart/fork-a-repo). - Copies of repositories on your machine are called clones. If you need help cloning to your local environment you can learn how from the GitHub documentation on [cloning a repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository-from-github/cloning-a-repository). 1. **npm installation:** You should have installed npm already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, go back to the installation lesson and install Node with NVM by following the instructions there. -1. **Jest Installation:** After cloning this repository to your local machine and installing NPM, go **into** the newly created directory (`cd javascript-exercises`) and run `npm install`. This will install Jest and set up the testing platform based on our preconfigured settings. (Note: if you get warnings that packages are out of date or contain vulnerabilities, you can safely ignore them for these exercises.) +1. **Jest installation:** After cloning this repository to your local machine and installing npm, go **into** the newly created directory (`cd javascript-exercises`) and run `npm install`. This will install Jest and set up the testing platform based on our preconfigured settings. (Note: if you get warnings that packages are out of date or contain vulnerabilities, you can safely ignore them for these exercises.) 1. Each exercise includes the following: - A markdown file with a description of the task, an empty (or mostly empty) JavaScript file, and a set of tests. From 9006d11f4b16f14e44bb96ae6c78ba44008a4ec8 Mon Sep 17 00:00:00 2001 From: Zunaid Hassan <67002737+zunaid-hassan@users.noreply.github.com> Date: Mon, 27 Oct 2025 18:25:56 +0800 Subject: [PATCH 4/4] Update npm installation instructions in README Clarified npm installation instructions in README. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f02461d34b6..b05742224ea 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ If you have a suggestion to improve an exercise, an idea for a new exercise, or 1. Fork and clone this repository. To learn how to fork a repository, see the GitHub documentation on how to [fork a repo](https://docs.github.com/en/get-started/quickstart/fork-a-repo). - Copies of repositories on your machine are called clones. If you need help cloning to your local environment you can learn how from the GitHub documentation on [cloning a repository](https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository-from-github/cloning-a-repository). -1. **npm installation:** You should have installed npm already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, go back to the installation lesson and install Node with NVM by following the instructions there. +1. **npm installation:** You should have installed npm already in our [Installing Node.js](https://www.theodinproject.com/paths/foundations/courses/foundations/lessons/installing-node-js) lesson. Just in case you need to check, type `npm --version` in your terminal. If you get back `Command 'npm' not found, but can be installed with:`, **do not follow the instructions in the terminal** to install with `apt-get` as this causes permission issues. Instead, **go back to the installation lesson** and install Node with NVM by following the instructions there. 1. **Jest installation:** After cloning this repository to your local machine and installing npm, go **into** the newly created directory (`cd javascript-exercises`) and run `npm install`. This will install Jest and set up the testing platform based on our preconfigured settings. (Note: if you get warnings that packages are out of date or contain vulnerabilities, you can safely ignore them for these exercises.) 1. Each exercise includes the following: