This is a cached version of https://nodejs.org/en/blog/migrations/v12-to-v14 from 2/28/2026, 3:15:40 PM.
Node.js — Node.js v12 to v14
Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
Skip to contentNode.js v12 to v14AMAugustinMauroyNode.js v12 to v14Node.js v12 to v14 !This article covers a part of the migration from Node.js v12 to v14. The userland migrations team is working on more codemods to help you with the migration. This page provides a list of codemods to help you migrate your code from Node.js v12 to v14. util-print-to-console-log This codemod transforms calls of various now-deprecated node:util log functions into the modern alternative, console.log and console.error: DEP0026: util.print → console.log DEP0027: util.puts → console.log DEP0028: util.debug → console.error DEP0029: util.error → console.error The source code for this codemod can be found in the util-print-to-console-log directory. You can find this codemod in the Codemod Registry. npx codemod run @nodejs/create-require-from-path Example: BeforeAfterconst util = require('node:util'); util.print('Hello world'); util.puts('Hello world'); util.debug('Hello world'); util.error('Hello world');JavaScriptCopy to clipboardPreviousNode.js v14 to v16