{"id":18943,"library":"yo","title":"yo","description":"CLI tool for running Yeoman generators. v7.0.1 (2025) is the latest stable, requiring Node.js ^20.17.0 || >=22.9.0. Yo provides a unified interface to scaffold projects using Yeoman generator ecosystem. Key differentiators: tight integration with yeoman-environment and yeoman-generator, supports local and global generators, and offers a doctor command for troubleshooting. Alternatives like create-* packages are project-specific; yo is framework-agnostic. Release cadence is irregular but major versions (v5, v6, v7) updated dependencies (got, inquirer, meow) and dropped Node.js versions.","status":"active","version":"7.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/yeoman/yo","tags":["javascript","cli-app","cli","front-end","development","dev","build","web","tool"],"install":[{"cmd":"npm install yo","lang":"bash","label":"npm"},{"cmd":"yarn add yo","lang":"bash","label":"yarn"},{"cmd":"pnpm add yo","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core runtime to interact with generators","package":"yeoman-environment","optional":false},{"reason":"Base class for generators; often a peer dep","package":"yeoman-generator","optional":false},{"reason":"Adapter abstraction for prompts since v7","package":"@yeoman/adapter","optional":false}],"imports":[{"note":"Use global install for reliability; npx may cause version conflicts.","wrong":"npx yo generator","symbol":"default (CLI run)","correct":"npm install --global yo && yo generator"},{"note":"Programmatic API is not well-documented; the package is primarily a CLI.","wrong":"import yo from 'yo'","symbol":"Programmatic API","correct":"import { runGenerator } from 'yo'"},{"note":"yo re-exports yeoman-environment indirectly; for advanced usage, import directly from yeoman-environment.","wrong":"import { Environment } from 'yo'","symbol":"Environment","correct":"import { Environment } from 'yeoman-environment'"}],"quickstart":{"code":"// Install yo globally\n// npm install --global yo\n\n// Install a generator\n// npm install --global generator-webapp\n\n// Run the generator\n// yo webapp\n\n// To generate scaffold:\n// yo\n\n// To run a local generator:\n// yo ./path/to/generator\n\n// Troubleshoot:\n// yo doctor","lang":"javascript","description":"Shows basic usage: install yo globally, install a generator, and run it to scaffold a project. Also includes local generator and doctor commands."},"warnings":[{"fix":"Upgrade Node.js to 20.17.0+ or 22.9.0+.","message":"yo v7 requires Node.js ^20.17.0 or >=22.9.0; drops support for Node 18 and 19.","severity":"breaking","affected_versions":">=7.0.0"},{"fix":"Update generator adapters to use @yeoman/adapter. Custom scripts using inquirer directly may need updates.","message":"yo v6 dropped completion support and removed direct dependency on inquirer, relying on @yeoman/adapter.","severity":"breaking","affected_versions":">=6.0.0"},{"fix":"Update Node.js to 18.13.0+; check any custom HTTP logic for got v11 breaking changes.","message":"yo v5 updated got to v11 and requires Node.js >=18.13.0.","severity":"breaking","affected_versions":">=5.0.0"},{"fix":"No action needed; if you relied on insight, switch to your own analytics.","message":"yo v4 removed insight module for tracking; telemetry is no longer collected.","severity":"deprecated","affected_versions":">=4.3.1"},{"fix":"Ensure yo and generators are installed in the same global prefix, or use npx with explicit version.","message":"Running a globally installed generator requires yo to be installed globally as well. Mixing global and local installations can cause errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install yeoman-environment: npm install --save-dev yeoman-environment","cause":"Missing required dependency when using yo programmatically or via npx.","error":"Error: Cannot find module 'yeoman-environment'"},{"fix":"Install the generator globally: npm install -g generator-webapp. Or use --local-only for local generators.","cause":"The generator is not installed or not in the lookup path.","error":"Error: Generator not found. Run `yo doctor` to troubleshoot."},{"fix":"Upgrade Node.js to 20.17.0 or 22.9.0+","cause":"Node.js version lower than required (>=20.17.0 for yo v7).","error":"Error: The engine \"node\" is incompatible with this module."}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}