Skip to content

Commit

Permalink
Added intro article
Browse files Browse the repository at this point in the history
  • Loading branch information
antydemant committed Apr 18, 2020
0 parents commit 8fa0e20
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
47 changes: 47 additions & 0 deletions 00-intro/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Installation

* Official website - https://nodejs.org/en/

![Image](https://nimbus-screenshots.s3.amazonaws.com/s/d404c40261ff6d4be5e1ec49437beac4.png)

* 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)
```

1 change: 1 addition & 0 deletions 00-intro/hello.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('Hello', process.argv[2]);

0 comments on commit 8fa0e20

Please sign in to comment.