[Tutorial] Installing nodejs and npm #287
[Tutorial] Installing nodejs and npm #287krishnamrutha2002 wants to merge 14 commits intosodafoundation:masterfrom
Conversation
steps to install nodejs and npm
Update readme.md
steps to update
Update readme.md
Steps to manage multiple versions
anvithks
left a comment
There was a problem hiding this comment.
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.
nit: Use code block to represent commands or keys
for ex: Ctrl+Alt+T
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.
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.
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.
Is this correct? I don't think this will work. is the package node js ?
There was a problem hiding this comment.
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.
Usually installing the NodeJS package installs npm alongwith. Please check if this is correct.
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.
two separate commands usually need to be separated with &&
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.
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.
this section should contain steps to update NodeJS and NPM without using NVM.
There was a problem hiding this comment.
in the question, it was mentioned with using nvm, we will surely add without using nvm too
There was a problem hiding this comment.
- 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.
Consider adding some info about LTS versions of NPM and how to install / use them.
anvithks
left a comment
There was a problem hiding this comment.
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:
***@***.***>
|
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: