From 5e0a75c487a2ee960f5cccd000c6bad40f0e72b8 Mon Sep 17 00:00:00 2001 From: Saqib Ameen Date: Tue, 29 Oct 2019 02:23:39 +0500 Subject: [PATCH] Add a note Add a note (condition) for running the `node.js` command. --- src/documentation/0007-node-run-cli/index.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/documentation/0007-node-run-cli/index.md b/src/documentation/0007-node-run-cli/index.md index 16f660bad4..7525260e0f 100644 --- a/src/documentation/0007-node-run-cli/index.md +++ b/src/documentation/0007-node-run-cli/index.md @@ -5,10 +5,12 @@ authors: flaviocopes, MylesBorins, fhemberger, LaRuaNa, ahmadawais section: Getting Started --- -The usual way to run a Node.js program is to call the `node` globally available command (once you install Node.js) and pass the name of the file you want to execute. +The usual way to run a Node.js program is to run the `node` globally available command (once you install Node.js) and pass the name of the file you want to execute. -If your main Node.js application file is in `app.js`, you can call it by typing +If your main Node.js application file is `app.js`, you can call it by typing: ```sh node app.js ``` + +While running the command, make sure you are in the same directory which contains the `app.js` file.