When I installed FlockOS via NPM, I faced issues with some methods described in the official documentation - https://docs.flock.com/display/flockos/API+Reference. Those methods simply did not exist.
Upon research, I found out that the NPM version is different than the one here on GitHub. Installing the FlockOS manually by downloading from GitHub solved all my issues.
Please update NPM version of package - https://www.npmjs.com/package/flockos