From c6e8dec5ba984c430a26396b247ce08413d560d7 Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Fri, 29 Apr 2022 23:42:08 -0700 Subject: [PATCH] Specify required version of Node.JS It turns out that String.replaceAll doesn't exist in Node until version 15. I was still on Node 14 so it didn't work for me until I updated. Now just making sure to document that version requirement so graders don't get confused. Co-authored-by: jgjanes --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index caf91b2..6566588 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ A browser based development environment will then open in your browser. ### Command Line Usage Codeable can also be run entirely on the command line. -1. Install [Node.js](https://nodejs.org/en/) +1. Install [Node.js](https://nodejs.org/en/) (version 16 or later) 2. Open the folder `src/runtime` in a terminal. 3. Execute the command `npm install` to download all required dependencies. @@ -28,5 +28,10 @@ Codeable code can then be execuated using the following command. node .\codeable_cli.js "PATH_TO_DOT_CODE_FILE" ``` +For example, running a sample program +``` +node .\codeable_cli.js "../../data/hello_world.code" +``` + ## Video Demonstration https://youtu.be/ernDGFt_-Ms -- 2.51.2