Open HAFDIAHMED opened 2 years ago
solution : ### npm i -g yo
You don't seem to have a generator with the name “react-native-ignite:model” installed. But help is on the way:
You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/. Install them with npm install generator-react-native-ignite.
To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.
If yo cannot find the generator, run yo doctor to troubleshoot your system.
there are 2 solutions
'CI' n'est pas reconnu en tant que commande interne ou externe, un programme ex�cutable ou un fichier de commandes. Generate a new model named product 'yo' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. events.js:377 throw er; // Unhandled 'error' event ^
Error: spawn yo ENOENT at notFoundError (C:\Users\ahafdi\AppData\Roaming\npm\node_modules\react-native-ignite\node_modules\cross-spawn\lib\enoent.js:11:11) at verifyENOENT (C:\Users\ahafdi\AppData\Roaming\npm\node_modules\react-native-ignite\node_modules\cross-spawn\lib\enoent.js:46:16) at ChildProcess.cp.emit (C:\Users\ahafdi\AppData\Roaming\npm\node_modules\react-native-ignite\node_modules\cross-spawn\lib\enoent.js:33:19) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) Emitted 'error' event on ChildProcess instance at: at ChildProcess.cp.emit (C:\Users\ahafdi\AppData\Roaming\npm\node_modules\react-native-ignite\node_modules\cross-spawn\lib\enoent.js:36:37) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn yo' }