#Help getting Admin live on Digital OCean

8 messages · Page 1 of 1 (latest)

final widget
#

So I have a full medusa setup working fine on localhost but when i try to deploy it the build comand failes due to all kinds of peer dependecies when I check npm audit if get this

While resolving: @medusajs/[email protected]
npm ERR! Found: @medusajs/[email protected]
npm ERR! node_modules/@medusajs/medusa
npm ERR! @medusajs/medusa@"^1.17.1" from the root project
npm ERR! peer @medusajs/medusa@"^1.17.2" from @medusajs/[email protected]
npm ERR! node_modules/@medusajs/medusa-js
npm ERR! @medusajs/medusa-js@"" from [email protected]
npm ERR! node_modules/medusa-react
npm ERR! medusa-react@"^9.0.10" from @medusajs/[email protected]
npm ERR! node_modules/@medusajs/admin-ui
npm ERR! @medusajs/admin-ui@"
" from @medusajs/[email protected]
npm ERR! node_modules/@medusajs/admin
npm ERR! 1 more (medusa-payment-stripe)
npm ERR! 3 more (medusa-payment-stripe, medusa-plugin-meilisearch, medusa-react)

I dont understand that why this happends in a current release am I missing something I installed using

npx create-medusa-app@latest

can anyone tell me am i using the wrong version of medusa or something

#

Also here is what npm audit tells me

#

16 vulnerabilities (7 moderate, 6 high, 3 critical)

candid topaz
#

If you'll see the whole error, it probably tells you to use --legacy-peer-deps. That's what you should use.

final widget
#

Thankyou @candid topaz I am just trying that now

#

@candid topaz this is what I am getting now at the top it show I am using --force and --legacy-peer-deps also tried them both seperatly have you any other suggestions my friend

candid topaz
#

Are you sure you have used --legacy-peer-deps? It doesn't look so. Also upgrade your @medusajs/admin to latest.
You need to have --legacy-peer-deps run on the deployment platform. Not when installing locally.
Is this Digital Ocean Apps? I don't know if you can specify an install command. Probably not. You'll need to create an .npmrc file in the root of your medusa backend directory with this content:

legacy-peer-deps=true

Remember to commit the file.