yo --generators lists my custom generator (globally installed) but yo says it's not installed
Hi there, I have a custom generator I wrote (@flexshopper/generator-flexshopper) and it's installed globally.
yo --generators sees it:
π32 πΊ yo --generators
Available Generators:
@flexshopper/flexshopper
babel
fleathers
node
However, yo @flexshopper/flexshopper raises an error:
π33 πΊ yo @flexshopper/flexshopper
Error @flexshopper/flexshopper
You don't seem to have a generator with the name β@flexshopper/flexshopperβ installed.
But help is on the way:
yo doctor gives the all clear:
π34 πΊ yo doctor
Yeoman Doctor
Running sanity checks on your system
β Global configuration file is valid
β NODE_PATH matches the npm root
β Node.js version
β No .bowerrc file in home directory
β No .yo-rc.json file in home directory
β npm version
Everything looks all right!
I installed a newer version of node with nvs and I don't think I changed any settings that should carry from one version of Node to another.
Any chance your generator JS files are broken? When we search for generators, we don't actually require the JS files; but we do when trying to run one.
Hi there, I have a custom generator I wrote (@flexshopper/generator-flexshopper) and it's installed globally.
yo --generatorssees it:π32 πΊ yo --generators Available Generators: @flexshopper/flexshopper babel fleathers nodeHowever,
yo @flexshopper/flexshopperraises an error:π33 πΊ yo @flexshopper/flexshopper Error @flexshopper/flexshopper You don't seem to have a generator with the name β@flexshopper/flexshopperβ installed. But help is on the way:
yo doctorgives the all clear:π34 πΊ yo doctor Yeoman Doctor Running sanity checks on your system β Global configuration file is valid β NODE_PATH matches the npm root β Node.js version β No .bowerrc file in home directory β No .yo-rc.json file in home directory β npm version Everything looks all right!I installed a newer version of node with nvs and I don't think I changed any settings that should carry from one version of Node to another.
me too ... Is there any solution? thanks