AWS lambda runs a specific Node version (8.10). You could use nvm to use specific nodejs version.
# install the compatible node version
nvm install
# changes terminal session to use the compatible node version
nvm use
# install node modules
npm install
# changes to compatible node on the terminal session
nvm use
npm test
npm run lint
npm run docs
Locally as dependency on another project is possible using npm link
# from root directory
# this creates a symbolic link from a global folder to the local code
npm link
# from src/project folder
# this links "node_modules/@zenginehq/backend-firebase" in this particular project to the global folder,
# so that "require" calls looking for backend-firebase wind up loading it from your development folder
npm link @zenginehq/backend-firebase