react-native-template-typescript icon indicating copy to clipboard operation
react-native-template-typescript copied to clipboard

Use error report

Open WuChenDi opened this issue 2 years ago • 0 comments

Hi, I'm having the following problem with

results

Logs

info Setting up new React Native app in D:\WuChenDi\rn\MyApp
info Fetching template react-native-template-react-native-template-typescript...
(node:21724) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
yarn add v1.22.5
[1/4] Resolving packages...
warning @react-native-community/eslint-config > [email protected]: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
warning babel-jest > @jest/transform > jest-haste-map > [email protected]: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added
error An unexpected error occurred: "https://registry.npmjs.org/react-native-template-react-native-template-typescript: Not found".
info If you think this is a bug, please open a bug report with the information provided in "D:\\WuChenDi\\rn\\MyApp\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
yarn remove v1.22.5
[1/2] Removing module react-native-template-react-native-template-typescript...
error This module isn't specified in a package.json file.
info Visit https://yarnpkg.com/en/docs/cli/remove for documentation about this command.
warn Failed to clean up template temp files in node_modules/react-native-template-react-native-template-typescript. This is not a critical error, you can work on your app.
D:\WuChenDi\rn\MyApp\node_modules\metro-hermes-compiler\src\emhermesc.js:77
          throw ex;
          ^

RuntimeError: abort(Error: Command failed: yarn add react-native-template-react-native-template-typescript). Build with -s ASSERTIONS=1 for more info.
    at process.abort (D:\WuChenDi\rn\MyApp\node_modules\metro-hermes-compiler\src\emhermesc.js:402:15)
    at process.emit (events.js:400:28)
    at processPromiseRejections (internal/process/promises.js:245:33)
    at processTicksAndRejections (internal/process/task_queues.js:96:32)

Steps to reproduce

  1. npx react-native init MyApp --template react-native-template-typescript

System Version

  1. System: win10
  2. node: v14.17.4
  3. yarn: v1.22.5

Looking forward to your reply, thanks!

WuChenDi avatar Jun 21 '22 02:06 WuChenDi