- 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]
推薦閱讀
- Learning ROS for Robotics Programming(Second Edition)
- Learning Selenium Testing Tools with Python
- 少年輕松趣編程:用Scratch創作自己的小游戲
- 精通API架構:設計、運維與演進
- Learning Laravel 4 Application Development
- Getting Started with NativeScript
- C語言程序設計
- SQL Server數據庫管理與開發兵書
- 愛上micro:bit
- Node Cookbook(Second Edition)
- App Inventor創意趣味編程進階
- 自學Python:編程基礎、科學計算及數據分析(第2版)
- Python程序設計開發寶典
- Java EE 7 with GlassFish 4 Application Server
- UML軟件建模