Repository navigation
agent-device cdp fails because pinned [email protected] is not published to npm #994
Description
Summary
agent-device cdp ... appears to invoke npm exec [email protected], but [email protected] is not published on npm. The latest npm version is currently 1.5.1, while GitHub has a v1.6.0 release/tag.
This makes agent-device cdp unusable from a normal install, even though [email protected] can be built from the GitHub tag and works when installed locally/globally.
Environment
agent-device:0.18.0agent-cdpfrom npm: latest available is1.5.1- Node:
v24.16.0 - Platform tested: macOS
- React Native / Expo app with Metro running on
http://127.0.0.1:8081
Reproduction
npm install -g agent-device
agent-device cdp target list --url http://127.0.0.1:8081Actual result
npm error code ETARGET
npm error notarget No matching version found for [email protected].npm view agent-cdp versions --json shows versions only up to 1.5.1.
Expected result
agent-device cdp ... should work from a standard agent-device installation, without requiring users to manually build/install an unpublished helper package.
Workaround verified
Building agent-cdp from the GitHub v1.6.0 tag works:
git clone --depth 1 --branch v1.6.0 https://github.com/callstackincubator/agent-cdp.git
cd agent-cdp
pnpm install --frozen-lockfile
pnpm -r --filter './packages/*' build
pnpm --filter @agent-cdp/protocol pack
pnpm --filter agent-cdp pack
npm install -g ./agent-cdp-protocol-1.6.0.tgz ./agent-cdp-1.6.0.tgz
agent-cdp --version
# 1.6.0However, agent-device cdp ... still fails from a normal project directory because it uses npm exec [email protected].
A local-directory workaround works:
mkdir -p ~/.agent-device/tools/agent-cdp-1.6.0
cd ~/.agent-device/tools/agent-cdp-1.6.0
npm init -y
npm install --no-save /path/to/agent-cdp-protocol-1.6.0.tgz /path/to/agent-cdp-1.6.0.tgz
agent-device cdp target list --url http://127.0.0.1:8081
# worksPossible fixes
- Publish
[email protected]and@agent-cdp/[email protected]to npm. - Or make
agent-device cdpprefer an existingagent-cdpbinary onPATHbefore falling back tonpm exec. - Or add an env/config override for the CDP helper executable/path.
Activity
thymikee commentedon Jul 1, 2026
Thanks! not sure how this slipped, asked Szymon to release 1.6.0 :D