Hi,
I tried to run discovery-cli by running discovery init
using Node.js v9.3.0. After that, the following error occurred
(node:9797) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, mkdir 'build/smart_contracts'
at Object.fs.mkdirSync (fs.js:905:18)
at createFolders (/usr/local/lib/node_modules/@enigmampc/discovery-cli/src/index.js:103:8)
at /usr/local/lib/node_modules/@enigmampc/discovery-cli/src/index.js:223:5
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
(node:9797) 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: 1)
(node:9797) [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.
When I changed the version of Node.js to probably the latest v12.4.0, the error did not occur.
Therefore, I think that there is a version restriction about Node.js. What is the recommended version of discovery-cli?
I think it is better to specify the recommended version for docs and GitHub README.
Thank you.