- Web Development with MongoDB and Node(Third Edition)
- Bruno Joseph D'mello Mithun Satheesh Jason Krol
- 117字
- 2021-07-08 10:32:40
Testing that Node.js is installed properly
Now that Node has been installed on your system, let's run a quick test to ensure everything is working properly.
Access a command line via your terminal program and execute the following command:
$ node --version v8.4.3 $ npm --version 5.3.0
Assuming that your Node installation was successful, you should see the version number that was installed as an output on the screen, right under the command you executed.
Your version numbers will most likely be more recent than those printed earlier.
You can also launch the Node repl, a command-line shell that lets you execute JavaScript directly:
$ node > console.log('Hello world!') Hello World! Undefined [press Ctrl-C twice to exit]
推薦閱讀
- Java多線程編程實戰指南:設計模式篇(第2版)
- Building a Home Security System with Raspberry Pi
- Java FX應用開發教程
- 精通軟件性能測試與LoadRunner實戰(第2版)
- R語言編程指南
- Eclipse Plug-in Development:Beginner's Guide(Second Edition)
- 用戶體驗增長:數字化·智能化·綠色化
- INSTANT Passbook App Development for iOS How-to
- Linux Device Drivers Development
- Learning Laravel's Eloquent
- Python High Performance Programming
- 軟件測試實用教程
- ASP.NET程序開發范例寶典
- 大話Java:程序設計從入門到精通
- Practical GIS