node.js 快速體驗

來源:互聯網
上載者:User

標籤:http   os   檔案   工作   log   window   安裝   windows   

對於一個從事js的工作人員,怎麼能不知道node.js呢!

一、安裝node.js

在window上安裝,http://nodejs.org上的windows installer 下載安裝,在安裝過程中本人喜歡點擊next 到安裝完成...

如果你不確定你已經成功安裝 開啟cmd

輸入 node -v

出現 版本資訊  表示你已經成功安裝。

(已經預設安裝了 npm。。。。)

二、可愛的helloworld

1、開啟編輯器  建立一個index.js (隨便的名稱)

寫下:console.log(‘hello world  !!!!‘);

儲存。

2、開啟cmd  cd到你的檔案路徑

node  index.js

你會看見DOS已經列印出了  hello Word!!!

是不是很簡單呢!!!

 

聯繫我們

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