react-native-community/cli error when using custom template

  Kiến thức lập trình

I’m trying to use my React Native boilerplate using the CLI but every time I try it shows me this error. I don’t know what I need to fix here. It works if I use the react-native@latest init but it will be deprecated. I want to use the react-native-community/cli@latest init.

npx react-native-community/cli@latest init MyApp --template file:///E:/React%20Native/rnboilerplate
npm error code ENOENT
npm error syscall open
npm error path E:React NativeRNTestingreact-native-communitycli@latestpackage.json
npm error errno -4058
npm error enoent Could not read package.json: Error: ENOENT: no such file or directory, open 'E:React NativeRNTestingreact-native-communitycli@latestpackage.json'
npm error enoent This is related to npm not being able to find a file.
npm error enoent
npm error A complete log of this run can be found in: C:UsersUserAppDataLocalnpm-cache_logs2024-08-20T03_37_29_814Z-debug-0.log

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT