curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Installing Node.js: Add information on npm installation

Open InvitaInvidia opened this issue 6 months ago • 4 comments

Checks

Describe your suggestion

In the "Installing Node.Js" lesson, the lesson overview states:

"This section contains a general overview of topics that you will learn in this lesson.

Learn how to Install nvm (Node Version Manager) and **npm.** (bold by me)
Learn how to run Node console"

There is no such information on the installation of npm in this lesson and frankly I did not find any such info at all skimming trough the rest of the lessons. this is really bad, as we are supposed to run tests using npm and jester in the next lesson. While the necessary information is provided in the readme "how to use the exercises" it is still originally assumed to be already taught in the respective lesson.

Path

Foundations

Lesson Url

https://www.theodinproject.com/lessons/foundations-installing-node-js

(Optional) Discord Name

No response

(Optional) Additional Comments

No response

InvitaInvidia avatar Jun 03 '25 14:06 InvitaInvidia

npm is also installed when you install node. You're right that the instructions don't seem to mention that, which could confuse some people. It only mentions that there is another tool called npm and that we'll use it later. We could possibly change "There is another tool called npm that we will later use" to "There is a tool that comes with the installation of node called npm" or something like that.

joayo13 avatar Jun 03 '25 16:06 joayo13

npm is automatically installed alongside node. I wouldn't be opposed to a sentence that mentions this towards the end of the lesson. Would that be enough to assuage your concerns @InvitaInvidia?

JoshDevHub avatar Jun 03 '25 17:06 JoshDevHub

That'd be great @JoshDevHub . In that case the problem I ran into trying to execute the test for the js-exercise 01_HELLOWORLD (getting the error message "Command npm not found") was probably due to me installing node via the system terminal and not the vscode terminal which ended in my system termial running Node v22.16.00 and vscode running v12.22.9 (which resulted in further problems with jester after installing npm manually). After changing the .zhsrc-file it now works with v22.16.00 running in both terminals.

InvitaInvidia avatar Jun 03 '25 20:06 InvitaInvidia

This issue is stale because it has had no activity for the last 30 days.

github-actions[bot] avatar Jul 11 '25 02:07 github-actions[bot]

@JoshDevHub I can make a pr if we're still going ahead with adding a line about npm

GaneshS288 avatar Aug 07 '25 08:08 GaneshS288

Sorry it took a while to respond - go for it @GaneshS288

mao-sz avatar Sep 03 '25 19:09 mao-sz