{"id":19318,"library":"babel-preset-node6","title":"babel-preset-node6","description":"v11.0.0 — Babel preset that transpiles only the ES2015 features missing in Node 6.x (V8 v5.x, ~93% coverage). Unlike the full ES2015 preset, this complements native V8 support, resulting in faster builds and execution. The preset includes only two plugins: trailing function commas and CommonJS modules. Last updated in 2017; no newer releases for current Node versions.","status":"deprecated","version":"11.0.0","language":"javascript","source_language":"en","source_url":"git://github.com/salakar/babel-preset-node6","tags":["javascript","babel-preset-node6","babel-preset","babel","node6","es2015","es6"],"install":[{"cmd":"npm install babel-preset-node6","lang":"bash","label":"npm"},{"cmd":"yarn add babel-preset-node6","lang":"bash","label":"yarn"},{"cmd":"pnpm add babel-preset-node6","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Babel core required at runtime (peer dependency)","package":"babel-core","optional":true},{"reason":"Required for on-the-fly transpilation","package":"babel-register","optional":true}],"imports":[{"note":"In .babelrc or babel config, you can just use the short name \"node6\" without the prefix.","wrong":"{\"presets\": [\"babel-preset-node6\"]}","symbol":"preset (via config)","correct":"{\"presets\": [\"node6\"]}"},{"note":"The preset is not directly required; it is passed as a string in the presets array.","wrong":"require(\"babel-preset-node6\")","symbol":"preset (via Node API)","correct":"require(\"babel-core\").transform(\"code\", { presets: [\"node6\"] })"},{"note":"CLI presets also use short name.","wrong":"babel script.js --presets babel-preset-node6","symbol":"preset (via CLI)","correct":"babel script.js --presets node6"}],"quickstart":{"code":"{\n  \"presets\": [\"node6\"]\n}","lang":"javascript","description":"Minimal .babelrc configuration to transpile only ES2015 features missing in Node 6.x."},"warnings":[{"fix":"Use a modern Babel preset like @babel/preset-env with target 'node 10' or higher.","message":"Node 6.x reached End of Life in April 2019. This preset is not maintained and should not be used for new projects.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Add babel-polyfill or @babel/polyfill for complete ES2015 support.","message":"Does not include full ES2015 coverage; only trailing commas and CommonJS modules are transpiled. Other missing features (e.g., Symbol, Proxy) are not polyfilled.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use @babel/preset-env with Babel 7 instead.","message":"Requires Babel 6.x. Incompatible with Babel 7.x (now @babel/... packages).","severity":"breaking","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install babel-preset-node6 and use short name \"node6\" in presets array.","cause":"Preset not installed or incorrect name used in configuration.","error":"Error: Couldn't find preset \"babel-preset-node6\" relative to directory"},{"fix":"Ensure .babelrc includes \"presets\": [\"node6\"] and that babel-register or babel-cli is used.","cause":"Babel not configured to transpile ES modules.","error":"SyntaxError: Unexpected token import"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}