Issue when installing @shopify/app-bridge-host

Topic summary

A developer is encountering installation errors when trying to install @shopify/app-bridge-host for local environment and e2e testing purposes.

Core Issue:

  • The npm package installation fails due to missing dependencies from @shopify-internal scope
  • Error messages indicate 404 responses for internal Shopify packages like @shopify-internal/react-compose and @shopify-internal/polaris

Specific Problems:

  • Peer dependency conflicts with @shopify-internal/react-i18n (version ^7.13.3 required)
  • Multiple internal Shopify packages cannot be resolved from the public npm registry
  • The packages appear to be private/internal Shopify dependencies not publicly available

Open Questions:

  • Whether special access tokens or permissions are needed to install this package
  • How to properly install @shopify/app-bridge-host given these dependency restrictions

The issue suggests this package may require access to Shopify’s internal registry or may not be intended for external developer use. No solutions or responses have been provided yet.

Summarized with AI on November 4. AI used: claude-sonnet-4-5-20250929.

Hello, I am a developer and want to Use App Bridge for local environment testing, like e2e testing. We found “app-bridge-host” npm (link). But during “npm i @Shopify_77 /app-bridge-host”, we figure out some dependencies to @Shopify_77 -internal are needed. Do you know how to install “app-bridge-host”, and do we need some access_token? Thank you.

The detailed error message during “npm i @Shopify_77 /app-bridge-host” is as follows:

npm warn ERESOLVE overriding peer dependency
npm warn While resolving: /app-bridge-host@9.0.0
npm warn Found: -internal/react-i18n@undefined
npm warn node_modules/@shopify-internal/react-i18n
npm warn
npm warn Could not resolve dependency:
npm warn peer -internal/react-i18n@"^7.13.3" from /app-bridge-host@9.0.0
npm warn node_modules/@shopify/app-bridge-host
npm warn   /app-bridge-host@"*" from the root project
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: /app-bridge-host@9.0.0
npm warn Found: /polaris-internal@undefined
npm warn node_modules/@shopify/polaris-internal
npm warn
npm warn Could not resolve dependency:
npm warn peer /polaris-internal@"^16.0.0" from /app-bridge-host@9.0.0
npm warn node_modules/@shopify/app-bridge-host
npm warn   /app-bridge-host@"*" from the root project
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/@shopify-internal%2freact-compose - Not found
npm error 404
npm error 404  '@shopify-internal/react-compose@^3.1.2' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /Users/.../.npm/_logs/2024-11-19T12_41_12_379Z-debug-0.log