/usr/share/doc/nodejs/html/contributing
# Maintaining npm in Node.js New pull requests should be opened when a "next" version of npm has been released. Once the "next" version has been promoted to "latest" the PR should be updated as necessary. The specific Node.js release streams the new version will be able to land into are at the discretion of the release and LTS teams. This process only covers full updates to new versions of npm. Cherry-picked changes can be reviewed and landed via the normal consensus seeking process. ## Step 1: Run the update script In the following examples, `x.y.z` should match the npm version to update to. ```console $ ./tools/update-npm.sh x.y.z ``` ## Step 2: Commit new npm ```console $ git add -A deps/npm $ git commit -m "deps: upgrade npm to x.y.z" ``` ## Step 3: Update licenses ```console $ ./configure $ make -j4 $ ./tools/license-builder.sh # The following commands are only necessary if there are changes $ git add . $ git commit -m "doc: update npm LICENSE using license-builder.sh" ``` Note: please ensure you are only making the updates that are changed by npm. ## Step 4: Apply whitespace fix ```console $ git rebase --whitespace=fix main ``` ## Step 5: Test the build ```console $ make test-npm ```
.
Edit
..
Edit
adding-new-napi-api.md
Edit
backporting-to-release-lines.md
Edit
building-node-with-ninja.md
Edit
code-of-conduct.md
Edit
collaborator-guide.md
Edit
commit-queue.md
Edit
components-in-core.md
Edit
cpp-style-guide.md
Edit
diagnostic-tooling-support-tiers.md
Edit
doc_img
Edit
feature-request-management.md
Edit
internal-api.md
Edit
investigating-native-memory-leaks.md
Edit
issues.md
Edit
maintaining-V8.md
Edit
maintaining-c-ares.md
Edit
maintaining-cjs-module-lexer.md
Edit
maintaining-dependencies.md
Edit
maintaining-http.md
Edit
maintaining-icu.md
Edit
maintaining-npm.md
Edit
maintaining-openssl.md
Edit
maintaining-root-certs.md
Edit
maintaining-shared-library-support.md
Edit
maintaining-the-build-files.md
Edit
maintaining-types-for-nodejs.md
Edit
maintaining-web-assembly.md
Edit
maintaining-zlib.md
Edit
node-postmortem-support.md
Edit
offboarding.md
Edit
primordials.md
Edit
pull-requests.md
Edit
releases.md
Edit
security-model-strategy.md
Edit
security-release-process.md
Edit
security-steward-on-off-boarding.md
Edit
static-analysis.md
Edit
strategic-initiatives.md
Edit
technical-priorities.md
Edit
technical-values.md
Edit
using-internal-errors.md
Edit
using-symbols.md
Edit
writing-and-running-benchmarks.md
Edit
writing-tests.md
Edit