Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
default
✓ import pkg from 'ncu-test-peer'
✗ const pkg = require('ncu-test-peer')
ESM-only package; no CommonJS export is provided
name
✓ import { name } from 'ncu-test-peer'
✗ import { default } from 'ncu-test-peer'
Named export 'name' is available, but default import is more common
type
✓ import type { PkgInfo } from 'ncu-test-peer'
✗ import { PkgInfo } from 'ncu-test-peer'
Type import only; PkgInfo is not a value
Shows how to install and use the package with its required peer dependency, and verify the expected behavior.
// Install peer dependencies manually
npm install ncu-test-peer ncu-test-return-version@"1.x"
// Verify installation
import pkg from 'ncu-test-peer';
console.log(pkg.name); // 'ncu-test-peer'
// Check peer dependency is present
import returnVersion from 'ncu-test-return-version';
console.log(returnVersion()); // '1.0.0' (or compatible version)
Errors
Common errors & fixes
Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/ncu-test-peer/index.js not supported.
Attempted to use CommonJS require() on an ESM-only package.
fixChange require() to import or use dynamic import().
npm ERR! Could not resolve dependency: npm ERR! peer ncu-test-return-version@"1.x" from ncu-test-peer@1.0.0
Peer dependency not installed or version mismatched.
fixManually install the correct peer: npm install ncu-test-return-version@"1.x"
Audit
Dependencies
ncu-test-return-versionrequiredPeer dependency required at runtime by design; installation will warn or fail if missing