Implementation:Nightwatchjs Nightwatch Package Lock Manifest
| Knowledge Sources | |
|---|---|
| Domains | Dependency_Management, Build_Configuration |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Auto-generated NPM dependency lock file that pins the exact versions of all direct and transitive dependencies for the Nightwatch test framework.
Description
The package-lock.json file is automatically generated by npm and records the exact version of every installed package and its dependency tree. For Nightwatch, this ensures deterministic installs across environments. The file is 9746 lines and locks dependencies including selenium-webdriver, mocha, and other core packages.
Usage
This file is consumed automatically by npm during `npm ci` or `npm install`. Users do not import or reference it directly. It ensures that all contributors and CI systems use identical dependency versions.
Code Reference
Source Location
- Repository: Nightwatchjs_Nightwatch
- File: package-lock.json
- Lines: 1-9746
Signature
{
"name": "nightwatch",
"lockfileVersion": 3,
"requires": true,
"packages": { ... }
}
Import
# Not imported directly; consumed by npm
npm ci
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| package.json | JSON | Yes | Declares direct dependencies and version ranges |
Outputs
| Name | Type | Description |
|---|---|---|
| node_modules/ | Directory | Installed package tree matching locked versions |
| Deterministic builds | Guarantee | All installs produce identical dependency tree |
Usage Examples
Install from Lock File
# Clean install using exact locked versions (recommended for CI)
npm ci
# Regular install (updates lock file if package.json changed)
npm install