Question: Verify that Node.js Chalk works correctly. Run the Node.js command prompt Navigate to the folder with your files Make a directory for the assignment Install
| Verify that Node.js Chalk works correctly. Run the Node.js command promptNavigate to the folder with your files Make a directory for the assignment Install chalk version 2.4.1 by running the following command npm install chalk@2.4.1 Create and save a .js file named colorDemo.js with the following content:chalk = require('chalk'); console.log(chalk.blue('Blue Text')); console.log(chalk.green('Green Text')); console.log(chalk.red('Red Text')); Execute the file from the command line using the following: node colorDemo.js Copy and Save the Snip in a Word document (.docx) Use the filename NPM_Assignment_Snips_Lastname.docx (ex. NPM_Assignment_Snips_Arrington.docx) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
