Post

Solve File '@tsconfig/node22/tsconfig.json' not found.

Solve File '@tsconfig/node22/tsconfig.json' not found.

Problem Description

After installing a Vue using npm create vue@latest, you may encounter an issue with the tsconfig.node.json file, as detailed below:

1
File '@tsconfig/node22/tsconfig.json' not found.

The Vue scaffold(e.g., create-vue) does not automatically include the corresponding '@tsconfig/* configuration for all Node.js version by default.

Instead, it selects based on the template you use and the current ecosystem context.

How to Solve?

The simplest solution is to install the missing dependency:

1
npm install @tsconfig/node22 --save-dev
This post is licensed under CC BY 4.0 by the author.