-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8fa0e20
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Installation | ||
|
||
* Official website - https://nodejs.org/en/ | ||
|
||
 | ||
|
||
* Check installed version of Node.js | ||
|
||
Terminal: | ||
```zsh | ||
ihor.ostapchuk@ihorostapchuk:~$ node -v | ||
v12.16.2 | ||
``` | ||
|
||
* Check installed version of Node Package Manager (NPM) | ||
|
||
Terminal: | ||
```zsh | ||
ihor.ostapchuk@ihorostapchuk:~$ npm -v | ||
6.14.4 | ||
``` | ||
|
||
* First Hello World | ||
|
||
File: [hello.js](hello.js) | ||
```javascript | ||
console.log('Hello', process.argv[2]); | ||
``` | ||
|
||
Terminal: | ||
```zsh | ||
ihor.ostapchuk@ihorostapchuk:~$ node hello.js World! | ||
Hello World! | ||
``` | ||
|
||
--- | ||
|
||
#### *80lvl: Node.js version management - (https://github.com/nvm-sh/nvm) or https://github.com/tj/n | ||
|
||
Terminal: | ||
```zsh | ||
ihor.ostapchuk@ihorostapchuk:~$ nvm use stable | ||
Now using node v12.16.2 (npm v6.14.4) | ||
ihor.ostapchuk@ihorostapchuk:~$ nvm use v10.18.1 | ||
Now using node v10.18.1 (npm v6.13.4) | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
console.log('Hello', process.argv[2]); |