question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error on create new project with create-react-native-app

See original GitHub issue

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

Steps to Reproduce

I have created new project with react native and run create-react-native-app awesome-project but encounter this errors.I had no problems before!

(Write your steps here:)

1.npm install -g create-react-native-app 2.create-react-native-app test5 3.

Expected Behavior

(Write what you thought would happen.)

Actual Behavior

Create a new React Native app

Using package manager as npm with npm interface.
Installing packages. This might take a couple minutes.
Installing react-native-scripts...

npm WARN deprecated tar.gz@1.0.7: ⚠️  WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
test5@0.1.0 C:\Users\admin\Desktop\test5
`-- react-native-scripts@1.7.0
  +-- @expo/bunyan@1.8.10
  | +-- moment@2.19.1
  | +-- mv@2.1.1
  | | `-- rimraf@2.4.5
  | |   `-- glob@6.0.4
  | `-- safe-json-stringify@1.0.4
  +-- babel-runtime@6.26.0
  | +-- core-js@2.5.1
  | `-- regenerator-runtime@0.11.0
  +-- chalk@2.3.0
  | +-- ansi-styles@3.2.0
  | | `-- color-convert@1.9.0
  | |   `-- color-name@1.1.3
  | +-- escape-string-regexp@1.0.5
  | `-- supports-color@4.5.0
  |   `-- has-flag@2.0.0
  +-- cross-spawn@5.1.0
  | +-- lru-cache@4.1.1
  | | +-- pseudomap@1.0.2
  | | `-- yallist@2.1.2
  | +-- shebang-command@1.2.0
  | | `-- shebang-regex@1.0.0
  | `-- which@1.3.0
  |   `-- isexe@2.0.0
  +-- fs-extra@3.0.1
  | +-- graceful-fs@4.1.11
  | +-- jsonfile@3.0.1
  | `-- universalify@0.1.1
  +-- indent-string@3.2.0
  +-- inquirer@3.3.0
  | +-- ansi-escapes@3.0.0
  | +-- cli-cursor@2.1.0
  | | `-- restore-cursor@2.0.0
  | |   +-- onetime@2.0.1
  | |   | `-- mimic-fn@1.1.0
  | |   `-- signal-exit@3.0.2
  | +-- cli-width@2.2.0
  | +-- external-editor@2.0.5
  | | +-- iconv-lite@0.4.19
  | | +-- jschardet@1.6.0
  | | `-- tmp@0.0.33
  | |   `-- os-tmpdir@1.0.2
  | +-- figures@2.0.0
  | +-- mute-stream@0.0.7
  | +-- run-async@2.3.0
  | | `-- is-promise@2.1.0
  | +-- rx-lite@4.0.8
  | +-- rx-lite-aggregates@4.0.8
  | +-- string-width@2.1.1
  | | `-- is-fullwidth-code-point@2.0.0
  | +-- strip-ansi@4.0.0
  | | `-- ansi-regex@3.0.0
  | `-- through@2.3.8
  +-- lodash@4.17.4
  +-- match-require@2.1.0
  | `-- uuid@3.1.0
  +-- minimist@1.2.0
  +-- path-exists@3.0.0
  +-- progress@2.0.0
  +-- qrcode-terminal@0.11.0
  +-- rimraf@2.6.2
  | `-- glob@7.1.2
  |   +-- fs.realpath@1.0.0
  |   +-- inflight@1.0.6
  |   | `-- wrappy@1.0.2
  |   +-- inherits@2.0.3
  |   +-- minimatch@3.0.4
  |   | `-- brace-expansion@1.1.8
  |   |   +-- balanced-match@1.0.0
  |   |   `-- concat-map@0.0.1
  |   +-- once@1.4.0
  |   `-- path-is-absolute@1.0.1
  `-- xdl@46.0.1
    +-- @expo/json-file@5.3.0
    | `-- json5@0.5.1
    +-- @expo/osascript@1.8.1
    | `-- exec-async@2.2.0
    +-- @expo/schemer@1.1.0
    | +-- ajv@5.3.0
    | | +-- co@4.6.0
    | | +-- fast-deep-equal@1.0.0
    | | +-- fast-json-stable-stringify@2.0.0
    | | `-- json-schema-traverse@0.3.1
    | +-- babel-polyfill@6.26.0
    | | `-- regenerator-runtime@0.10.5
    | +-- babel-preset-flow@6.23.0
    | | `-- babel-plugin-transform-flow-strip-types@6.22.0
    | |   `-- babel-plugin-syntax-flow@6.18.0
    | +-- file-type@5.2.0
    | +-- instapromise@2.0.7
    | `-- probe-image-size@3.1.0
    |   +-- deepmerge@1.5.2
    |   +-- got@7.1.0
    |   | +-- decompress-response@3.3.0
    |   | | `-- mimic-response@1.0.0
    |   | +-- duplexer3@0.1.4
    |   | +-- get-stream@3.0.0
    |   | +-- is-plain-obj@1.1.0
    |   | +-- is-retry-allowed@1.1.0
    |   | +-- is-stream@1.1.0
    |   | +-- isurl@1.0.0
    |   | | +-- has-to-string-tag-x@1.4.1
    |   | | | `-- has-symbol-support-x@1.4.1
    |   | | `-- is-object@1.0.1
    |   | +-- lowercase-keys@1.0.0
    |   | +-- p-cancelable@0.3.0
    |   | +-- p-timeout@1.2.0
    |   | | `-- p-finally@1.0.0
    |   | +-- url-parse-lax@1.0.0
    |   | | `-- prepend-http@1.0.4
    |   | `-- url-to-options@1.0.1
    |   +-- next-tick@1.0.0
    |   `-- stream-parser@0.3.1
    +-- @expo/spawn-async@1.3.0
    +-- analytics-node@2.4.1
    | +-- @segment/loosely-validate-event@1.1.2
    | | +-- component-type@1.2.1
    | | `-- join-component@1.1.0
    | +-- clone@2.1.1
    | +-- commander@2.11.0
    | +-- crypto-token@1.0.1
    | +-- debug@2.6.9
    | +-- remove-trailing-slash@0.1.0
    | +-- superagent@3.8.0
    | | +-- component-emitter@1.2.1
    | | +-- cookiejar@2.1.1
    | | +-- debug@3.1.0
    | | +-- formidable@1.1.1
    | | +-- mime@1.4.1
    | | `-- readable-stream@2.3.3
    | |   +-- core-util-is@1.0.2
    | |   +-- isarray@1.0.0
    | |   +-- process-nextick-args@1.0.7
    | |   +-- string_decoder@1.0.3
    | |   `-- util-deprecate@1.0.2
    | `-- superagent-retry@0.6.0
    +-- auth0@2.8.0
    | +-- bluebird@2.11.0
    | +-- lru-memoizer@1.11.1
    | | +-- lock@0.1.4
    | | +-- lodash@4.5.1
    | | +-- lru-cache@4.0.2
    | | `-- very-fast-args@1.1.0
    | +-- object.assign@4.0.4
    | | +-- define-properties@1.1.2
    | | | `-- foreach@2.0.5
    | | +-- function-bind@1.1.1
    | | `-- object-keys@1.0.11
    | `-- rest-facade@1.10.1
    |   +-- bluebird@2.11.0
    |   +-- change-case@2.3.1
    |   | +-- camel-case@1.2.2
    |   | +-- constant-case@1.1.2
    |   | +-- dot-case@1.1.2
    |   | +-- is-lower-case@1.1.3
    |   | +-- is-upper-case@1.1.2
    |   | +-- lower-case@1.1.4
    |   | +-- lower-case-first@1.0.2
    |   | +-- param-case@1.1.2
    |   | +-- pascal-case@1.1.2
    |   | +-- path-case@1.1.2
    |   | +-- sentence-case@1.1.3
    |   | +-- snake-case@1.1.2
    |   | +-- swap-case@1.1.2
    |   | +-- title-case@1.1.2
    |   | +-- upper-case@1.1.3
    |   | `-- upper-case-first@1.1.2
    |   `-- superagent-proxy@1.0.2
    |     `-- proxy-agent@2.1.0
    |       +-- agent-base@2.1.1
    |       | `-- semver@5.0.3
    |       +-- http-proxy-agent@1.0.0
    |       +-- https-proxy-agent@1.0.0
    |       +-- lru-cache@2.6.5
    |       +-- pac-proxy-agent@2.0.0
    |       | +-- get-uri@2.0.1
    |       | | +-- data-uri-to-buffer@1.2.0
    |       | | +-- file-uri-to-path@1.0.0
    |       | | `-- ftp@0.3.10
    |       | |   +-- readable-stream@1.1.14
    |       | |   | +-- isarray@0.0.1
    |       | |   | `-- string_decoder@0.10.31
    |       | |   `-- xregexp@2.0.0
    |       | +-- pac-resolver@3.0.0
    |       | | +-- degenerator@1.0.4
    |       | | | +-- ast-types@0.9.14
    |       | | | +-- escodegen@1.9.0
    |       | | | | +-- estraverse@4.2.0
    |       | | | | +-- esutils@2.0.2
    |       | | | | `-- optionator@0.8.2
    |       | | | |   +-- deep-is@0.1.3
    |       | | | |   +-- fast-levenshtein@2.0.6
    |       | | | |   +-- levn@0.3.0
    |       | | | |   +-- prelude-ls@1.1.2
    |       | | | |   +-- type-check@0.3.2
    |       | | | |   `-- wordwrap@1.0.0
    |       | | | `-- esprima@3.1.3
    |       | | +-- ip@1.1.5
    |       | | +-- netmask@1.0.6
    |       | | `-- thunkify@2.1.2
    |       | `-- socks-proxy-agent@3.0.1
    |       |   `-- agent-base@4.1.1
    |       |     `-- es6-promisify@5.0.0
    |       |       `-- es6-promise@4.1.1
    |       `-- socks-proxy-agent@2.1.1
    |         `-- socks@1.1.10
    |           `-- smart-buffer@1.1.15
    +-- auth0-js@7.6.1
    | +-- Base64@0.1.4
    | +-- json-fallback@0.0.1
    | +-- jsonp@0.0.4
    | +-- qs@6.5.1
    | +-- reqwest@2.0.5
    | +-- trim@0.0.1
    | +-- winchan@0.1.4
    | `-- xtend@2.1.2
    |   `-- object-keys@0.4.0
    +-- bluebird@3.5.1
    +-- body-parser@1.18.2
    | +-- bytes@3.0.0
    | +-- content-type@1.0.4
    | +-- depd@1.1.1
    | +-- http-errors@1.6.2
    | | +-- setprototypeof@1.0.3
    | | `-- statuses@1.4.0
    | +-- on-finished@2.3.0
    | | `-- ee-first@1.1.1
    | +-- raw-body@2.3.2
    | | `-- unpipe@1.0.0
    | `-- type-is@1.6.15
    |   `-- media-typer@0.3.0
    +-- decache@4.3.0
    | `-- callsite@1.0.0
    +-- delay-async@1.1.0
    +-- es6-error@4.0.2
    +-- exists-async@2.0.0
    +-- express@4.16.2
    | +-- accepts@1.3.4
    | | `-- negotiator@0.6.1
    | +-- array-flatten@1.1.1
    | +-- content-disposition@0.5.2
    | +-- cookie@0.3.1
    | +-- cookie-signature@1.0.6
    | +-- encodeurl@1.0.1
    | +-- escape-html@1.0.3
    | +-- etag@1.8.1
    | +-- finalhandler@1.1.0
    | | `-- statuses@1.3.1
    | +-- fresh@0.5.2
    | +-- merge-descriptors@1.0.1
    | +-- methods@1.1.2
    | +-- parseurl@1.3.2
    | +-- path-to-regexp@0.1.7
    | +-- proxy-addr@2.0.2
    | | +-- forwarded@0.1.2
    | | `-- ipaddr.js@1.5.2
    | +-- range-parser@1.2.0
    | +-- safe-buffer@5.1.1
    | +-- send@0.16.1
    | | +-- destroy@1.0.4
    | | `-- statuses@1.3.1
    | +-- serve-static@1.13.1
    | +-- setprototypeof@1.1.0
    | +-- statuses@1.3.1
    | +-- utils-merge@1.0.1
    | `-- vary@1.1.2
    +-- file-type@4.4.0
    +-- freeport-async@1.1.1
    +-- fs-extra@0.30.0
    | `-- klaw@1.3.1
    +-- getenv@0.7.0
    +-- glob@7.1.2
    +-- hasbin@1.2.3
    | `-- async@1.5.2
    +-- home-dir@1.0.0
    +-- instapromise@2.0.7-rc.1
    +-- joi@10.6.0
    | +-- hoek@4.2.0
    | +-- isemail@2.2.1
    | +-- items@2.1.1
    | `-- topo@2.0.2
    +-- jsonfile@2.4.0
    +-- jsonschema@1.2.0
    +-- jsonwebtoken@7.4.3
    | +-- joi@6.10.1
    | | +-- hoek@2.16.3
    | | +-- isemail@1.2.0
    | | `-- topo@1.1.0
    | +-- jws@3.1.4
    | | +-- base64url@2.0.0
    | | `-- jwa@1.1.5
    | |   +-- buffer-equal-constant-time@1.0.1
    | |   `-- ecdsa-sig-formatter@1.0.9
    | +-- lodash.once@4.1.1
    | +-- ms@2.0.0
    | `-- xtend@4.0.1
    +-- md5hex@1.0.0
    +-- mkdirp@0.5.1
    | `-- minimist@0.0.8
    +-- mkdirp-promise@5.0.1
    +-- mz@2.7.0
    | +-- any-promise@1.3.0
    | +-- object-assign@4.1.1
    | `-- thenify-all@1.6.0
    |   `-- thenify@3.3.0
    +-- ncp@2.0.0
    +-- opn@4.0.2
    | `-- pinkie-promise@2.0.1
    |   `-- pinkie@2.0.4
    +-- plist@2.1.0
    | +-- base64-js@1.2.0
    | `-- xmlbuilder@8.2.2
    +-- querystring@0.2.0
    +-- raven@2.2.1
    | +-- lsmod@1.0.0
    | +-- stack-trace@0.0.9
    | +-- timed-out@4.0.1
    | `-- uuid@3.0.0
    +-- raven-js@3.19.1
    +-- UNMET PEER DEPENDENCY react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0
    +-- react-redux@5.0.6
    | +-- hoist-non-react-statics@2.3.1
    | +-- invariant@2.2.2
    | +-- lodash-es@4.17.4
    | +-- loose-envify@1.3.1
    | | `-- js-tokens@3.0.2
    | `-- prop-types@15.6.0
    |   `-- fbjs@0.8.16
    |     +-- core-js@1.2.7
    |     +-- isomorphic-fetch@2.2.1
    |     | +-- node-fetch@1.7.3
    |     | | `-- encoding@0.1.12
    |     | `-- whatwg-fetch@2.0.3
    |     +-- promise@7.3.1
    |     | `-- asap@2.0.6
    |     +-- setimmediate@1.0.5
    |     `-- ua-parser-js@0.7.17
    +-- read-chunk@2.1.0
    | `-- pify@3.0.0
    +-- redux@3.7.2
    | `-- symbol-observable@1.0.4
    +-- redux-logger@2.10.2
    | `-- deep-diff@0.3.4
    +-- request@2.83.0
    | +-- aws-sign2@0.7.0
    | +-- aws4@1.6.0
    | +-- caseless@0.12.0
    | +-- combined-stream@1.0.5
    | | `-- delayed-stream@1.0.0
    | +-- extend@3.0.1
    | +-- forever-agent@0.6.1
    | +-- form-data@2.3.1
    | | `-- asynckit@0.4.0
    | +-- har-validator@5.0.3
    | | `-- har-schema@2.0.0
    | +-- hawk@6.0.2
    | | +-- boom@4.3.1
    | | +-- cryptiles@3.1.2
    | | | `-- boom@5.2.0
    | | `-- sntp@2.1.0
    | +-- http-signature@1.2.0
    | | +-- assert-plus@1.0.0
    | | +-- jsprim@1.4.1
    | | | +-- extsprintf@1.3.0
    | | | +-- json-schema@0.2.3
    | | | `-- verror@1.10.0
    | | `-- sshpk@1.13.1
    | |   +-- asn1@0.2.3
    | |   +-- bcrypt-pbkdf@1.0.1
    | |   +-- dashdash@1.14.1
    | |   +-- ecc-jsbn@0.1.1
    | |   +-- getpass@0.1.7
    | |   +-- jsbn@0.1.1
    | |   `-- tweetnacl@0.14.5
    | +-- is-typedarray@1.0.0
    | +-- isstream@0.1.2
    | +-- json-stringify-safe@5.0.1
    | +-- mime-types@2.1.17
    | | `-- mime-db@1.30.0
    | +-- oauth-sign@0.8.2
    | +-- performance-now@2.1.0
    | +-- stringstream@0.0.5
    | +-- tough-cookie@2.3.3
    | | `-- punycode@1.4.1
    | `-- tunnel-agent@0.6.0
    +-- request-progress@3.0.0
    | `-- throttleit@1.0.0
    +-- semver@5.4.1
    +-- slugid@1.1.0
    | `-- uuid@2.0.3
    +-- slugify@1.2.1
    +-- source-map-support@0.4.18
    | `-- source-map@0.5.7
    +-- tar.gz@1.0.7
    | +-- bluebird@2.11.0
    | +-- fstream@1.0.11
    | +-- mout@0.11.1
    | `-- tar@2.2.1
    |   `-- block-stream@0.0.9
    +-- tree-kill@1.2.0
    +-- url@0.11.0
    | `-- punycode@1.3.2
    +-- xmldom@0.1.27
    `-- yesno@0.0.1

npm WARN react-redux@5.0.6 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none was installed.
Installing dependencies using npm...

npm WARN deprecated connect@2.30.2: connect 2.x series is deprecated
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.1.1 (node_modules\sane\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save"
npm ERR! node v6.11.5
npm ERR! npm  v3.10.10
npm ERR! code EREADFILE

npm ERR! Error extracting C:\Users\admin\AppData\Roaming\npm-cache\jest-expo\22.0.0\package.tgz archive: ENOENT: no such file or directory, open 'C:\Users\admin\AppData\Roaming\npm-cache\jest-expo\22.0.0\package.tgz'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\admin\Desktop\test5\npm-debug.log
Failed to install

(Write what happened. Add screenshots!)

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
PhilTheAircommented, Nov 9, 2017

I came across this issue and solved with updating the node.js and install yarn on my new machine.

1reaction
seand88commented, Nov 8, 2017

@bakerjay06074 install yarn for Windows and it should work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot create react project 'react-native init' issue. #27442
I am trying to create an app using the CLI, I get the following error Downloading template × Copying template error Error: Cannot...
Read more >
Error when starting new React Native Project - Stack Overflow
I have previously worked on React projects and was able to create and run React Native Expo projects previously on the same machine....
Read more >
Troubleshooting - React Native
If you encounter an error such as npm WARN locking Error: EACCES while using the React Native CLI, try running the following:.
Read more >
Addressing common errors in React Native - LogRocket Blog
Explore common React Native errors such as "command not found" and learn about their causes and potential solutions.
Read more >
Create a New React App
Scaling to many files and components. Using third-party libraries from npm. Detecting common mistakes early. Live-editing CSS and JS in development. Optimizing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found