you have to install axios code example Example 1: install axios $ npm install axios Example 2: install axios npm install axios