Setting up a DB on javascript - is not a function

I'm running localForage on my app. I installed the app via bower and have access to it via the console. When I type in

localforage.setItem('key', 'value', function(err, value) { return value; });

I receive the following error.

self._initStorage is not a function

However, if I type in localforage in the console I receive

LocalForage {_config: Object, _driverSet: Promise, _ready: null, _dbInfo: null}

What's wrong and how do I fix this?

Installed the library incorrectly.