[BUG] Claude Code crashes when trying to run: npm install --save-dev react-devtools-core

Resolved 💬 3 comments Opened Nov 30, 2025 by froggeric Closed Dec 4, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

This has now happened at least 4 times in the last week. Claude Code crashes and the last message I see is always similar to this (it always involves calling npm install --save-dev react-devtools-core):

805 | 
806 | $ npm install --save-dev react-devtools-core
807 | 				`.trim()+`
808 | `);else throw R}uu=jGB.default({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(R){if(typeof R.onComputeLayout==="function")R.onComputeLayout();if(R.isStaticDirty){if(R.isStaticDirty=!1,typeof R.onImmediateRender==="function")R.onImmediateRender();return}R.onRender?.()},getChildHostContext(R,T){let A=R.isInsideText,B=T==="ink-text"||T==="ink-virtual-text";if(A===B)return R;return{isInsideText:B}},shouldSetTextContent:()=>!1,createInstance(R,T,A,B){if(B.isInsideText&&R==="ink-box")throw Error("<Box> can\u2019t be nested inside <Text> component");let D=R==="ink-text"&&B.isInsideText?"ink-virtual-text":R,H=DoR(D);for(let[G,$]of Object.entries(T)){if(G==="children")continue;if(G==="style"){if(XcT(H,$),H.yogaNode)qcT(H.yogaNode,$);continue}if(G==="internal_transform"){H.internal_transform=$;continue}if(G==="internal_static"){H.internal_static=!0;continue}JcT(H,G,$)}return H},createTextInstance(R,T,A){if(!A.isInsideText)throw Er | ... truncated 
809 | `).repeat(M);if(q)x=lR.dim(x);let b=(b9(I,D)($.right)+`
810 | `.repeat(D)+ZcT(T,B)}return T},rGB=(R,T,{offsetX:A=0,offsetY:B=0,transformers:D=[],skipStaticElements:H,theme:G})=>{if(H&&R.internal_static)return;let{yogaNode:$}=R;if($){if($.getDisplay()===Ww.None)return;let W=A+$.getComputedLeft(),_=B+$.getComputedTop(),C=D;if(typeof R.internal_transform==="function")C=[R.internal_transform,...D];if(R.nodeName==="ink-text"){let J=BoR(R);if(J.length>0){let X=fHR(J),q=vGB($);if(X>q){let O=R.style.textWrap??"wrap";J=mu(J,q,O)}J=FtD(R,J),T.write(W,_,J,{transformers:C})}return}let I=!1;if(R.nodeName==="ink-box"){nGB(W,_,R,T,G);let J=R.style.overflowX==="hidden"||R.style.overflow==="hidden",X=R.style.overflowY==="hidden"||R.style.overflow==="hidden";if(J||X){let q=J?W+$.getComputedBorder(z7.Left):void 0,O=J?W+$.getComputedWidth()-$.getComputedBorder(z7.Right):void 0,Z=X?_+$.getComputedBorder(z7.Top):void 0,K=X?_+$.getComputedHeight()-$.getComputedBorder(z7.Bottom):void 0;T.clip({x1:q,x2:O,y1:Z,y2:K}),I=!0}}if(R.nodeName==="ink-root"||R.nodeName==="ink-box"){for(let J of R.childN | ... truncated 

RangeError: Array length must be a positive integer of safe magnitude.
      at get (/$bunfs/root/claude:810:8127)
      at <anonymous> (/$bunfs/root/claude:812:1548)
      at onRender (/$bunfs/root/claude:831:34018)
      at resetAfterCommit (/$bunfs/root/claude:807:334)
      at w3R (/$bunfs/root/claude:717:39500)
      at gO (/$bunfs/root/claude:717:38872)
      at YU (/$bunfs/root/claude:717:35435)
      at k1 (/$bunfs/root/claude:715:4818)
      at c_ (/$bunfs/root/claude:717:32479)
      at L3R (/$bunfs/root/claude:715:25183)

Bun v1.3.2 (macOS arm64)

What Should Happen?

Claude Code should not crash

Error Messages/Logs

805 | 
806 | $ npm install --save-dev react-devtools-core
807 | 				`.trim()+`
808 | `);else throw R}uu=jGB.default({getRootHostContext:()=>({isInsideText:!1}),prepareForCommit:()=>null,preparePortalMount:()=>null,clearContainer:()=>!1,resetAfterCommit(R){if(typeof R.onComputeLayout==="function")R.onComputeLayout();if(R.isStaticDirty){if(R.isStaticDirty=!1,typeof R.onImmediateRender==="function")R.onImmediateRender();return}R.onRender?.()},getChildHostContext(R,T){let A=R.isInsideText,B=T==="ink-text"||T==="ink-virtual-text";if(A===B)return R;return{isInsideText:B}},shouldSetTextContent:()=>!1,createInstance(R,T,A,B){if(B.isInsideText&&R==="ink-box")throw Error("<Box> can\u2019t be nested inside <Text> component");let D=R==="ink-text"&&B.isInsideText?"ink-virtual-text":R,H=DoR(D);for(let[G,$]of Object.entries(T)){if(G==="children")continue;if(G==="style"){if(XcT(H,$),H.yogaNode)qcT(H.yogaNode,$);continue}if(G==="internal_transform"){H.internal_transform=$;continue}if(G==="internal_static"){H.internal_static=!0;continue}JcT(H,G,$)}return H},createTextInstance(R,T,A){if(!A.isInsideText)throw Er | ... truncated 
809 | `).repeat(M);if(q)x=lR.dim(x);let b=(b9(I,D)($.right)+`
810 | `.repeat(D)+ZcT(T,B)}return T},rGB=(R,T,{offsetX:A=0,offsetY:B=0,transformers:D=[],skipStaticElements:H,theme:G})=>{if(H&&R.internal_static)return;let{yogaNode:$}=R;if($){if($.getDisplay()===Ww.None)return;let W=A+$.getComputedLeft(),_=B+$.getComputedTop(),C=D;if(typeof R.internal_transform==="function")C=[R.internal_transform,...D];if(R.nodeName==="ink-text"){let J=BoR(R);if(J.length>0){let X=fHR(J),q=vGB($);if(X>q){let O=R.style.textWrap??"wrap";J=mu(J,q,O)}J=FtD(R,J),T.write(W,_,J,{transformers:C})}return}let I=!1;if(R.nodeName==="ink-box"){nGB(W,_,R,T,G);let J=R.style.overflowX==="hidden"||R.style.overflow==="hidden",X=R.style.overflowY==="hidden"||R.style.overflow==="hidden";if(J||X){let q=J?W+$.getComputedBorder(z7.Left):void 0,O=J?W+$.getComputedWidth()-$.getComputedBorder(z7.Right):void 0,Z=X?_+$.getComputedBorder(z7.Top):void 0,K=X?_+$.getComputedHeight()-$.getComputedBorder(z7.Bottom):void 0;T.clip({x1:q,x2:O,y1:Z,y2:K}),I=!0}}if(R.nodeName==="ink-root"||R.nodeName==="ink-box"){for(let J of R.childN | ... truncated 

RangeError: Array length must be a positive integer of safe magnitude.
      at get (/$bunfs/root/claude:810:8127)
      at <anonymous> (/$bunfs/root/claude:812:1548)
      at onRender (/$bunfs/root/claude:831:34018)
      at resetAfterCommit (/$bunfs/root/claude:807:334)
      at w3R (/$bunfs/root/claude:717:39500)
      at gO (/$bunfs/root/claude:717:38872)
      at YU (/$bunfs/root/claude:717:35435)
      at k1 (/$bunfs/root/claude:715:4818)
      at c_ (/$bunfs/root/claude:717:32479)
      at L3R (/$bunfs/root/claude:715:25183)

Bun v1.3.2 (macOS arm64)

Steps to Reproduce

No idea

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.55

Platform

Google Vertex AI

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗