Closed b1ek closed 1 year ago
Thanks for the report ! I will work on it
have you found out how to fix this by chance?
I got the same error but by chance it logged this:
√ Downloading template
√ Copying template
√ Processing template
i Executing post init script
√ � Using typescript ? (y/N)
... yes
Error: Command failed: yarn add -D @thecodingmachine/rnb-plugin-typescript
'yarn' n'est pas reconnu en tant que commande interne
ou externe, un programme ex�cutable ou un fichier de commandes.
at checkExecSyncError (node:child_process:871:11)
at execSync (node:child_process:943:15)
at RNBPlugin.apply (C:\Users\samsa\AppData\Local\Temp\rncli-init-template-CXBAvb\node_modules\@thecodingmachine\rnb-toolbox\dist\index.js:45:56)
at applyPlugin (C:\Users\samsa\AppData\Local\Temp\rncli-init-template-CXBAvb\node_modules\@thecodingmachine\react-native-boilerplate\template\plugins\index.js:22:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 1,
signal: null,
output: [
null,
<Buffer >,
<Buffer 27 79 61 72 6e 27 20 6e 27 65 73 74 20 70 61 73 20 72 65 63 6f 6e 6e 75 20 65 6e 20 74 61 6e 74 20 71 75 65 20 63 6f 6d 6d 61 6e 64 65 20 69 6e 74 65 ... 70 more bytes>
],
pid: 11336,
stdout: <Buffer >,
stderr: <Buffer 27 79 61 72 6e 27 20 6e 27 65 73 74 20 70 61 73 20 72 65 63 6f 6e 6e 75 20 65 6e 20 74 61 6e 74 20 71 75 65
20 63 6f 6d 6d 61 6e 64 65 20 69 6e 74 65 ... 70 more bytes>
}
I got the same error but by chance it logged this:
√ Downloading template √ Copying template √ Processing template i Executing post init script √ � Using typescript ? (y/N) ... yes Error: Command failed: yarn add -D @thecodingmachine/rnb-plugin-typescript 'yarn' n'est pas reconnu en tant que commande interne ou externe, un programme ex�cutable ou un fichier de commandes. at checkExecSyncError (node:child_process:871:11) at execSync (node:child_process:943:15) at RNBPlugin.apply (C:\Users\samsa\AppData\Local\Temp\rncli-init-template-CXBAvb\node_modules\@thecodingmachine\rnb-toolbox\dist\index.js:45:56) at applyPlugin (C:\Users\samsa\AppData\Local\Temp\rncli-init-template-CXBAvb\node_modules\@thecodingmachine\react-native-boilerplate\template\plugins\index.js:22:9) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { status: 1, signal: null, output: [ null, <Buffer >, <Buffer 27 79 61 72 6e 27 20 6e 27 65 73 74 20 70 61 73 20 72 65 63 6f 6e 6e 75 20 65 6e 20 74 61 6e 74 20 71 75 65 20 63 6f 6d 6d 61 6e 64 65 20 69 6e 74 65 ... 70 more bytes> ], pid: 11336, stdout: <Buffer >, stderr: <Buffer 27 79 61 72 6e 27 20 6e 27 65 73 74 20 70 61 73 20 72 65 63 6f 6e 6e 75 20 65 6e 20 74 61 6e 74 20 71 75 65 20 63 6f 6d 6d 61 6e 64 65 20 69 6e 74 65 ... 70 more bytes> }
This error says that yarn is not recognize as a command So I install yarn and after I run the template command again and it worked
I think it is because you are not using yarn globally in your computer
Try to install yarn globally npm install --global yarn
first,
Then after run npx react-native init MyApp --template @thecodingmachine/react-native-boilerplate
have you found out how to fix this by chance?
@Dumnersm580 This was a problem with my npm repositories. Deleting cached repos and full reinstall of npm fixed this for me
react-native environment setup
Description
Error:
The complete log:
To reproduce the error, run
npx react-native init App --template @thecodingmachine/react-native-boilerplate