Node.js-1

來源:互聯網
上載者:User

標籤:一個   ges   而且   特性   找不到   mod   .com   添加   組件   

NPM is a package manager for Node.js packages, or modules if you like.

www.npmjs.com hosts thousands of free packages to download and use.

The NPM program is installed on your computer when you install Node.js

nodejs可以使 javascript 流暢的運行在伺服器端,採用Googlechrome瀏覽器V8引擎,由C++語言編寫.

實質上是一個javascript運行環境,瀏覽器端javascript運行,互動組件,非同步請求是通過瀏覽器解析外掛程式來解析頁面的js代碼.

nodejs不僅可以解析JS代碼,而且還沒有瀏覽器安全級的限制,還提供系統層級的API

  1 檔案的讀寫

  2 進程的管理

  3 網路通訊 等等

===1-2 學習Node.js的理由======================================================================================================

一、nodejs.org看看nodejs的版本升級,新特性的加入,重要bug的修複等

二、www.npmjs.com模組社區,看他人原始碼,省力

三、github.com大量的項目和源碼

四、stackoverflow.com技術解答社區以及查詢相關資源,環境配置,異常均可找到答案

===========================================================================================================================

不同node.js版本對應的介面的不一樣,需要找對應的介面文檔進行查看

---2-2Nodejs版本常識-------------------------------------------------------------------------------------

nodejs的版本:偶數位的為穩定版本 奇數的為不穩定版本

---2-2Nodejs版本常識-------------------------------------------------------------------------------------

---2-3 windows安裝Node.js-------------------------------------------------------------------------------------

cmd

1.環境變數 mycomputer-right click-System Properties-Advanced-Evironment Variables

System Variables:Path

下載安裝git bash:https://git-scm.com命令列輸入 node -v 查看是否安裝成功下載安裝nodejs:https://nodejs.org命令列輸入 npm -v 查看是否安裝成功
安裝Git Bash->安裝NodeJS->開啟Git Bash->node -v->npm -v https://git-scm.com/download/winhttps://nodejs.org/en/cmd下查看版本,如果輸入node找不到,很可能是環境變數的問題

案頭開啟Git Bash:node -v,npm -v

  npm -v

Git Bash:

[email protected] MINGW64 ~$ node -vv6.11.0[email protected] MINGW64 ~$ npm -v3.10.10

 

注意:cmd下查看版本,如果輸入node找不到,很可能是環境變數的問題。

此時可以手動修改換將變數,把安裝路徑添加到System variables的Path中。

 

---2-2Nodejs版本常識-------------------------------------------------------------------------------------

---2-2Nodejs版本常識-------------------------------------------------------------------------------------

---2-2Nodejs版本常識-------------------------------------------------------------------------------------

---2-2Nodejs版本常識-------------------------------------------------------------------------------------。

Node.js-1

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.