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.

Can't create a new app

See original GitHub issue

Description

I’m running commands like create-react-native-app foo, but they’re failing. They’ve worked in the past with the same setup (same versions of node, yarn, OS, same network, etc.) - I think it may be an issue with a package that create-react-native-app depends on (duplexer3) being removed from the npm registry?

Expected Behavior

I expected a new react native app skeleton to be created.

Observed Behavior

create-react-native-app foo failed with output:

Creating a new React Native app in /Users/yashapodeswa/projects/foo.

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

yarn add v1.3.2
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning react-native-scripts > xdl > auth0-js > xtend > object-keys@0.4.0:
error Received malformed response from registry for "duplexer3". The registry may be down.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Error: Received malformed response from registry for "timed-out". The registry may be down.
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:48907:15
    at Generator.next (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:92:30)
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:110:14
    at new Promise (<anonymous>)
    at new F (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:29389:28)
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:89:12
    at Function.findVersionInRegistryResponse (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:48946:7)
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:48963:28
    at Generator.next (<anonymous>)
Error: Received malformed response from registry for "timed-out". The registry may be down.
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:48907:15
    at Generator.next (<anonymous>)
    at step (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:92:30)
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:110:14
    at new Promise (<anonymous>)
    at new F (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:29389:28)
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:89:12
    at Function.findVersionInRegistryResponse (/usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:48946:7)
    at /usr/local/Cellar/yarn/1.3.2/libexec/lib/cli.js:48963:28
    at Generator.next (<anonymous>)
`yarnpkg add --dev --exact --ignore-optional react-native-scripts` failed

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: n/a
  • npm ls react-native: n/a
  • npm ls expo: n/a
  • node -v: 8.9.4
  • npm -v: 5.6.0
  • yarn --version: 1.3.2
  • watchman version: 4.9.0

Also specify:

  1. Operating system: macOS Sierra (version 10.12.6)
  2. Phone/emulator/simulator & version: n/a

Reproducible Demo

Run create-react-native-app <anything>

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
yashapcommented, Jan 9, 2018

Sorry @puradox , didn’t mean to say that you’d put anything malicious in there. Was just using pinkie as evidence of “it may be temporarily possible for some commonly used packages to be re-published by not-the-original-author”, and if that was indeed the case, npm installs of seemingly trusted packages could do some really nasty stuff to your system, so the cautious approach would be to wait a bit before installing any npm packages.

1reaction
puradoxcommented, Jan 9, 2018

@yashap @shtefcs I had no intention of “hijacking” pinkie. See my comment on https://github.com/floatdrop/pinkie/issues/18.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't create a new app | Apple Developer Forums
I'm trying to create new app - I've my own account, that has been granted access to company's developer account (so I can...
Read more >
Solved: Unable to create new app - Power Platform Community
Solved: I cannot create a new app, when I click on the link in the SharePoint list, it just spins, The same thing...
Read more >
Why can't I create a app ? - Developer Community Forum
You can find the events manager by going to business.facebook.com and go to settings, there you will see events manager. I hope this...
Read more >
Can't create a new app - Twitter API v2
I try to create a new app with an account to develop. I receive one mail with content: " Your Twitter developer account...
Read more >
Can't create new app · Issue #149 · aws-amplify ... - GitHub
Select project and master branch; Enter environment variables; Click create. Expected behavior. New app should be created. Additional context
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