https://youtu.be/8sKzmTfan2w?rel=0
Steps to install dependency using NPM
- Create a project from a JavaScript (Node.js) template.
- Open terminal and type
npm install <package_name>
, replace <package_name>
with a name of NPM dependency that you want to install.
- For example, let’s install the chalk NPM module with the following command:
npm install chalk
- Update your code to use new dependency:
import chalk from 'chalk';
console.log(chalk.red('Hey! It\\'s in red!'))
- Tap the Run button and check out the result!