Registry / testing / ncu-test-peer

ncu-test-peer

JSON →
library1.0.0jsnpmunverified

A minimal test package that declares a peer dependency on ncu-test-return-version (v1.x). This package itself has no functional code; it exists solely to validate how package managers (npm, yarn, pnpm) handle peer dependency resolution and version matching during installation. It is part of the npm-check-updates test suite and has no release cadence or production use case.

npm install ncu-test-peer
INSTALL
IMPORT
SIG · NCU-TEST-PEER
N
ncu-test-peer
testingjavascriptv1.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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
musl
node 18226 runs
build_error
glibc
node 18226 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)
Debug
Known issues
gotchaPeer dependency 'ncu-test-return-version' must be manually installed; not automatically installed by npm/yarn/pnpm by default.
fix
Run npm install ncu-test-return-version@"1.x" alongside this package.
affects: >=1.0.0
breakingPackage is ESM-only; importing via require() throws a runtime error.
fix
Use import syntax or set type: module in package.json.
affects: >=1.0.0
gotchaNo README or documentation provided; behavior may be ambiguous.
fix
Refer to ncu-test-return-version's README for expected peer interaction.
affects: >=1.0.0
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.
fix
Change 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.
fix
Manually install the correct peer: npm install ncu-test-return-version@"1.x"
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
ncu-test-return-versionrequiredPeer dependency required at runtime by design; installation will warn or fail if missing
Agent activity
2 hits · last 30 days
node
2
Resources
ncu-test-peer — npm install ncu-test-peer · libregistry