/usr/local/lib/node_modules/aeproject/aeproject-cli.js
at Object. (/Users/federico/aeternity/myFirstAepp/node_modules/aeproject-lib/dist/aeproject-deployer.js:21:43)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:991:10)
(node:8657) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:8657) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Hello everyone, I am having this same issue on ubuntu when calling the aeproject deploy command.
Error Sample:
(node:538929) UnhandledPromiseRejectionWarning: /path_to_project/node_modules/aeproject-lib/dist/aeproject-deployer.js:1
Error: Cannot find module 'aeproject-utils'
Require stack:
- /path_to_project/node_modules/aeproject-lib/dist/aeproject-deployer.js
- /path_to_project/node_modules/aeproject-lib/dist/index.js
- /path_to_project/deployment/deploy.js
- /usr/local/lib/node_modules/aeproject/aeproject-deploy/deploy.js
- /usr/local/lib/node_modules/aeproject/commands.js
- /usr/local/lib/node_modules/aeproject/aeproject-cli.js
at Object.<anonymous> (/path_to_project/node_modules/aeproject-lib/dist/aeproject-deployer.js:21:43)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
(node:538929) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:538929) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I guess I found the solution already. The project was missing 3 npm package which is aeproject-utils, prompts, and aeproject-logger. This project can be installed using the below code snippet.