
Hi Everyone,
I am trying to create a Code App from scratch using the new npm CLI by following the Microsoft documentation:
https://learn.microsoft.com/en-in/power-apps/developer/code-apps/how-to/npm-quickstart
However, I am consistently running into the following error for command " npx power-apps init":
Environment '4fa73ba7-b430-e7da-bc5e-1655f0146644' not found. Please verify the environment ID and ensure you have access to it.
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file src\win\async.c, line 94
To troubleshoot, I have:
Despite these attempts, I am seeing the exact same error.
My observation is that the issue may be related to authentication or the CLI failing to correctly associate the authenticated user with the selected environment, even though I have access to the environment in Power Platform.
Has anyone else encountered this issue while using the new npm CLI for Code Apps? If so, were you able to identify the root cause or find a workaround?
Any guidance would be greatly appreciated.
Thank you!