error cannot read property 'length' of undefined as the api is calling code example Example: Cannot read property 'length' of undefined npm install -g npm // JUST UPDATE NPM //