While running the getting started guide, I was executing forge deploy followed by forge install. After following the wizard I always end up with the same error: Error: Forge apps must be deployed before installation. Deploy your app by running forge deploy -e development.
This while my forge deploy just finishes normally.
It seems like you are following the correct steps. I have two suggestions here
There might be an issue where the deployment was into the wrong environment so I would try the suggested command forge deploy -e development
There could be issues during our deployments so I would try running forge deploy --verbose to see all the requests being made to our services. I would suggest skimming through the requests to see if there are any errors. It would help us a tonne if you send us the Request ID (which is part of our API request) to track down the issues.
Thanks again and hope the issue doesn’t continue for you
thanks for getting back to me. I have ran forge deploy --verbose and got an error:
Error: Error at [object Promise], reason: Error: error:0308010C:digital envelope routines::unsupported
Error: Error at [object Promise], reason: Error: error:0308010C:digital envelope routines::unsupported
at process.<anonymous> (C:\Users\jbindinga\AppData\Roaming\npm\node_modules\@forge\cli\out\command-line\index.js:56:38)
at process.emit (node:events:390:28)
at emit (node:internal/process/promises:136:22)
at processPromiseRejections (node:internal/process/promises:242:25)
at processTicksAndRejections (node:internal/process/task_queues:97:32)
Thanks for sharing this error. We’ve actually seen this before, and it can be fixed by switching to an LTS version of Node (e.g. Node 16 or 14 or 12). The Forge CLI does not support non-LTS versions of Node at the moment.
On the note of using the wrong version of node with forge:
Speaking as a frequent user of nvm, it would be helpful if the Forge CLI could print a warning message on startup if it were being invoked with an unsupported version of node.