{"id":24953,"library":"babel-node-ts","title":"babel-node-ts","description":"A lightweight CLI wrapper that runs babel-node with --extensions ts,tsx by default, eliminating the need to manually specify TypeScript file extensions. Version 1.0.3 is the latest stable release. This package is no longer actively maintained and is considered deprecated in favor of modern alternatives like ts-node or tsx. It has a single peer dependency on @babel/node ^7.2.2. Key differentiator: simple extension auto-adding with no configuration.","status":"deprecated","version":"1.0.3","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","babel","babel-node","cli","typescript","ts","tsx","extensions"],"install":[{"cmd":"npm install babel-node-ts","lang":"bash","label":"npm"},{"cmd":"yarn add babel-node-ts","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-node-ts","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required to run babel-node","package":"@babel/node","optional":false}],"imports":[{"note":"This is a CLI tool, not a library; use npx or global install.","wrong":"require('babel-node-ts')","symbol":"babel-node-ts","correct":"npx babel-node-ts script.ts"},{"note":"Only CLI usage; no programmatic API.","wrong":"import babel-node-ts from 'babel-node-ts'","symbol":"babel-node-ts (CLI)","correct":"yarn babel-node-ts script.ts"}],"quickstart":{"code":"npx babel-node-ts index.ts","lang":"typescript","description":"Runs a TypeScript file using babel-node with .ts and .tsx extensions automatically included."},"warnings":[{"fix":"Replace with ts-node: npx ts-node index.ts or tsx: npx tsx index.ts","message":"Package is no longer maintained; consider using ts-node or tsx instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Install peer dep: npm install --save-dev @babel/node","message":"Requires @babel/node as a peer dependency; must be installed separately.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use different tool if custom extensions needed.","message":"Only adds --extensions ts,tsx; does not support other extensions like .tsbuildinfo.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install --save-dev @babel/node","cause":"Missing peer dependency @babel/node","error":"Error: Cannot find module '@babel/node'"},{"fix":"Use npx babel-node-ts or install globally: npm install -g babel-node-ts","cause":"Package not installed globally or not using npx","error":"babel-node-ts: command not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}