-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tutorial] Installing nodejs and npm #287
base: master
Are you sure you want to change the base?
[Tutorial] Installing nodejs and npm #287
Conversation
steps to install nodejs and npm
Update readme.md
steps to update
Update readme.md
Steps to manage multiple versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @krishnamrutha2002 @komalkumar262 @kens077
Please check the review comments.
learning/dashboard/group9/readme.md
Outdated
@@ -0,0 +1,105 @@ | |||
# How to install and setup NodeJS and npm? | |||
- **step 1:** | |||
Open the Terminal on your Ubuntu system. You can do this by pressing the **"Ctrl+Alt+T"** keys simultaneously. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Use code block to represent commands or keys
for ex: Ctrl+Alt+T
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok done
learning/dashboard/group9/readme.md
Outdated
|
||
`node -v` | ||
|
||
This will display the version number of Node.js installed on your system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding example output of the commands. this will help people understand if the command has executed correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will surely add some screenshorts
learning/dashboard/group9/readme.md
Outdated
- **step3:** | ||
Install Nodejs using the following command: | ||
|
||
`sudo apt get install node js` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct? I don't think this will work. is the package node js
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, there is no space in between
we will do the required changes
learning/dashboard/group9/readme.md
Outdated
- **step5:** | ||
Install NPM (Node Package Manager) by typing the following command: | ||
|
||
`sudo apt-get install npm` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually installing the NodeJS package installs npm alongwith. Please check if this is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
learning/dashboard/group9/readme.md
Outdated
- **step 2:** | ||
Check the currently installed versions of Node.js and NPM by typing the following commands: | ||
|
||
`node -v npm -v` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two separate commands usually need to be separated with &&
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
learning/dashboard/group9/readme.md
Outdated
## How to manage multiple versions of node.js and npm using nvm | ||
|
||
- **Step1:** | ||
Install nvm on your Ubuntu system by running the following command in your terminal: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be repeated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah will surely check
learning/dashboard/group9/readme.md
Outdated
|
||
`node -v npm -v` | ||
- **step3:** | ||
To update Node.js, you can use the Node Version Manager (nvm) tool. If you do not have nvm installed, you can install it using the following command: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this section should contain steps to update NodeJS and NPM without using NVM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the question, it was mentioned with using nvm, we will surely add without using nvm too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Install appropriate version of NodeJS and Npm based on the OS and version
- How to update the NodeJS and npm versions -> This is the current section. Thisis without NVM
- How to manage multiple versions of NodeJS using nvm -> This is the next section.
learning/dashboard/group9/readme.md
Outdated
|
||
`nvm install <node_version>` | ||
|
||
Replace **<node_version>** with the version of Node.js you want to install, such as "14.18.1". This will download and install the specified version of Node.js. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding some info about LTS versions of NPM and how to install / use them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM @krishnamrutha2002 @komalkumar262 @kens077
Consider adding the section to install LTS versions.
Sir i have made changes, can you please check it and let me know if any
corrections are required.
…On Mon, 3 Apr, 2023, 10:54 am Anvith KS, ***@***.***> wrote:
***@***.**** approved this pull request.
LGTM @krishnamrutha2002 <https://github.com/krishnamrutha2002>
@komalkumar262 <https://github.com/komalkumar262> @kens077
<https://github.com/kens077>
Consider adding the section to install LTS versions.
—
Reply to this email directly, view it on GitHub
<#287 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5MFP2G4AUHFYPADTEI25U3W7JNIPANCNFSM6AAAAAAWKC3PL4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Test Report Added?:
Test Report:
Special notes for your reviewer: