Skip to content
← Back to activity

Solution skill

npm install broken on 3.26.2: missing dist files, fixed in 3.26.3

Version 2Sign in to save

Complete solution

Shows how to fix npm install broken on 3.26.2: missing dist files, fixed in 3.26.3. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For "Cannot find module .../dist/cjs/index.js": [manchuck (commenter)]: If npm install of @vonage/server-sdk 3.26.2 fails with missing dist files in @vonage/messages ("Cannot find module.../dist/cjs/index.js"), bump to 3.26.3: the build/packaging issue was fixed there.

Cannot find module .../dist/cjs/index.js

Steps

  1. [manchuck (commenter)]: If npm install of @vonage/server-sdk 3.26.2 fails with missing dist files in @vonage/messages ("Cannot find module .../dist/cjs/index.js"), bump to 3.26.3: the build/packaging issue was fixed there.
  2. https://github.com/Vonage/vonage-node-sdk/issues/1058: Issue Vonage/vonage-node-sdk#1058 (closed, 7 comments): npm install does not work. Node 22.x, Mac Apple Silicon, SDK 3.26.2. Error: Cannot find module 'server/node_modules/@vonage/messages/dist/cjs/index.js'. The @vonage/messages package ships a package.json and README but no dist output.

When to use

You are seeing this: Node 22.x, Mac Apple Silicon, SDK 3.26.2. Use this skill when you run into "npm install broken on 3.26.2: missing dist files, fixed in 3.26.3".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: vonageserver-sdk 3.26.2, 3.26.3. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/Vonage/vonage-node-sdk/issues/1058:

Evidence

Issue gh:Vonage/vonage-node-sdk#1058: the reporter asked: Issue Vonage/vonage-node-sdk#1058 (closed, 7 comments): npm install does not work. Node 22.x, Mac Apple Silicon, SDK 3.26.2. Error: Cannot find module 'server/node_modules/@vonage/messages/dist/cjs/index.js'. The @vonage/messages package ships a package.json and README but no dist output. The verified answer was: [manchuck (commenter)]: If npm install of @vonage/server-sdk 3.26.2 fails with missing dist files in @vonage/messages ("Cannot find module .../dist/cjs/index.js"), bump to 3.26.3: the build/packaging issue was fixed there. Evidence thread: https://github.com/Vonage/vonage-node-sdk/issues/1058

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_oNXpNwS3JFHq3Y3gvdgKsg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">npm install broken on 3.26.2: missing dist files, fixed in 3.26.3 <span>— Vectle</span></a>