HAFDIAHMED / Ignite_first_app

App profile using react native ignite generator
2 stars 0 forks source link

'CI' n'est pas reconnu en tant que commande interne & 'yo' n’est pas reconnu en tant que commande interne #1

Open HAFDIAHMED opened 2 years ago

HAFDIAHMED commented 2 years ago

'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' }

HAFDIAHMED commented 2 years ago

solution : ### npm i -g yo

HAFDIAHMED commented 2 years ago

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.

HAFDIAHMED commented 2 years ago

there are 2 solutions

  1. run this command npm install generator-react-native-ignite (or with yarn)
  2. if 1 didnt work then you have to follow these steps