altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

fix: Verdaccio sanity NAPI binding resolution fails in CI

Open anandgupta42 opened this issue 8 months ago • 0 comments

Problem

The Verdaccio sanity suite fails in CI on Phase 1 and Phase 1b with:

  • FAIL: altimate-core napi binding (exit code 1)
  • FAIL: NAPI module failed: error:Cannot find module '@altimateai/altimate-core'

Root Cause

After npm install -g altimate-code, the @altimateai/altimate-core dependency is installed nested at <global_root>/altimate-code/node_modules/@altimateai/altimate-core, not hoisted to the global root. The NODE_PATH in the test scripts only includes the global root, so Node can't find the module.

Fix

Include both the global root and the package's nested node_modules in NODE_PATH.

anandgupta42 avatar Mar 29 '26 16:03 anandgupta42