Can't create a new app
See original GitHub issueDescription
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/anpm ls react-native
: n/anpm ls expo
: n/anode -v
: 8.9.4npm -v
: 5.6.0yarn --version
: 1.3.2watchman version
: 4.9.0
Also specify:
- Operating system: macOS Sierra (version 10.12.6)
- Phone/emulator/simulator & version: n/a
Reproducible Demo
Run create-react-native-app <anything>
Issue Analytics
- State:
- Created 6 years ago
- Comments:19
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@yashap @shtefcs I had no intention of “hijacking”
pinkie
. See my comment on https://github.com/floatdrop/pinkie/issues/18.