install chart js 2 npm code example Example 1: install package chart.js npm install chart.js --save Example 2: chart.js npm install npm install chart.js --save