I normally add the dependency in the package.json file, for example:
"dependencies": { "@adobe/aio-cli-plugin-cloudmanager": "^3.0.2", "@adobe/aio-lib-state": "1.1.2", "@adobe/aio-sdk": "^3.0.0", "@adobe/exc-app": "0.2.47", "@adobe/generator-add-action-generic": "^0.2.7", "axios": "^0.27.2"...