《Node.js入門經典》

來源:互聯網
上載者:User

標籤:style   color   使用   sp   java   strong   檔案   on   div   

第一章  Node.js介紹

一、什麼是Node.js

  google的工程師建立了V8引擎,這是給Chrom瀏覽器編寫javascript引擎,

  V8為引擎來建立伺服器環境,的理由:

  1、速度快    2、處理超文本協議,網域名稱系統,和傳輸控制通訊協定(TCP)

 

 

第二章  npm(node包管理器)

一、npm是什麼

  它允許開發人員在node.js中建立、共用和重用模組

 

二、安裝npm

  安裝模組命令:npm install

 

  1、本地安裝和全域安裝

    本地安裝:就是將項目安裝在本地的一個[ node_modules ]的檔案夾下, 運行 npm  install  [ module_name ]

    全域安裝:有些模組你希望能夠在檔案系統的任何一個位置都能運行  全域安裝 -g   命令 npm install -g express

 

  2、使用package.json 指定依賴關係

 

 

第三章  Node.js的作用

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

《Node.js入門經典》

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.