Failing to run medplum-cdk-init
# support
r
Hey, folks! Going through the self-hosting guide (https://www.medplum.com/docs/self-hosting/install-on-aws), hit a wall w/ `npx medplum-cdk-init`:
Copy code
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/medplum-cdk-init - Not found
npm ERR! 404 
npm ERR! 404  'medplum-cdk-init@*' is not in this registry.
I'm have
@medplum/cdk
on version
^2.0.21
, and checked
node_modules
but there's no
init.cjs
on
@medplum/cdk/dist/cjs/
. Looking at the Medplum repo, I noticed the
init.ts
script is under the
cli
package. From there I found my way and executed the init with
medplum aws init
So likely just need to update the docs, right? Shared the whole flow here even though I found my way so others can find too when searching for some keyword.
r
Thanks Raf! Would you mind proposing what you think is the right copy change? Not sure if I exactly follow https://github.dev/medplum/medplum/blob/main/packages/docs/docs/self-hosting/install-on-aws.md
r
Hey, @reshma ! Sure can! From what I can tell, this command on the docs* is outdated:
Copy code
npx medplum-cdk-init
*docs: https://www.medplum.com/docs/self-hosting/install-on-aws#run-the-init-tool AFAIK, it should reference Medplum's CLI (https://www.medplum.com/docs/cli#aws) init command:
Copy code
medplum aws init
c
Thanks @Raf - Great catch! I filed an issue here, we'll get on this right away. https://github.com/medplum/medplum/issues/2195
154 Views