generator-wshang yarn add generator-wshang this will install yo temporary and run it, also you can install yo globally. npx yo wshang