2021年6月7日 星期一

Node.js Install

前言

Node.js 是什麼呢?

官網說法:

Node.js® is a JavaScript runtime built on Chrome’s V8 JavaScript engine.

簡單來說Node.js 就是能執行 JavaScript 的環境,

並讓傳統的 JavaScript 程式跳脫一般的瀏覽器,

也可配合主流瀏覽器,

如 Google Chrome V8 JavaScript 引擎,

讓程式的整體的效能大幅提升

更簡單來說現在主流前端都仰賴它所以要裝

下面將介紹小編使用的步驟



步驟

  1. 前往 Node.Js,下載長期支援版本(左邊 LTS)
    enter image description here

  2. 點選 Next
    enter image description here

  3. 點選 Next
    enter image description here

  4. 小編都選預設值,點選 Next
    enter image description here

  5. 預設原本沒有安裝 Chocolatey !!!
    Chocolatey 是在 Windows 上的套件管理工具,它結合 Nuget 基礎服務與 powershell 指令,提供快速安裝應用程式與需要工具的服務,只需要一條簡單的指令,就可搜尋、安裝、更新、解安裝等操作,詳細說明 What is Chocolatey?
    強大的工具,小編選擇安裝它!!!
    點選 Next
    enter image description here

  6. 點選 Install
    enter image description here

  7. 點選
    enter image description here

  8. 等待安裝…
    enter image description here

  9. 點選 Finish
    enter image description here

  10. Node.js 安裝完成
    enter image description here

  11. 自動繼續安裝 Chocolatey,點選
    enter image description here

  12. 安裝中…
    enter image description here

  13. 這裡安裝需要點時間,安裝完畢
    enter image description here

  14. 開啟 cmd 並輸入以下指令
    確定 Node.js 版本

    node -v

    enter image description here

總結

不得不說它安裝速度還算可以,
但在使用上,下載套件真的「」到有點受不了!!!之後會選用 FaceBook 開源套件 yarn 取代。
有時間再來分享 yarn vs npm。

沒有留言:

張貼留言