create-react-app not working not after upgrading npm and nodejs - create-react-app

I upgraded npm and nodejs to 6.14.4 and 12.16.3 resp. Getting below error while creating react app using create-react-app.

According to readme:
If you've previously installed create-react-app globally via npm
install -g create-react-app, we recommend you uninstall the package
using npm uninstall -g create-react-app to ensure that npx always uses
the latest version.
So resolved the problem using command:
npx create-react-app contactmanager

Related

react-native init is empty upon creation

i'm upgrading to react-native to the latest.
I'm following this https://reactnative.dev/docs/0.68/environment-setup
with current setup
ruby 2.7.5 (using rvm)
gem 3.1.6
node 14
after running this command
npx react-native init AwesomeProject
I only got this on my folder
Thank you.
Sorry,
I just fixed it by reinstalling these
npm uninstall -g react-native
npm uninstall -g react-native-cli
npm install -g react-native-cli
npm install -g react-native

Why am I unable to install expo cli?

I have followed the documentation from Expo website, installed NodeJs, git, watachmann, however I m still getting errors when installing Expo cli:
First, ensure you use the recommended version of nodejs. For that, you can use the n module:
// if you haven't installed it before
sudo npm install n -g
//to have the latest stable version
sudo n stable
Then delete all your preview installs with npm and start over. For expo-cli:
sudo npm uninstall --global expo-cli
sudo npm install --global expo-cli

How can I install a specific NativeScript version?

Im trying to install the tns 6.7.4 version, but I just get the 7.1.2 version.
I tried to do:
sudo npm uninstall -g nativescript
sudo npm cache clean --force
sudo npm install -g nativescript#6.7.4
I also tried with nativescript#6 and also with nativescript#6.7 but everything ends with the 7.1.2 version.
The command npm i -g nativescript will install the NativeScript CLI. It won't update/migrate your existing project. However, once you have installed a specific version of the CLI, you can use it to create new projects with the related versions.
For example
npm uninstall -g nativescript
npm i -g nativescript#5.4.0
tns --version // will output 5.4.0
Once you have the wanted version of the CLI you can create a project that uses the core dependencies

Errors when running npm install -g create-react-app in ubuntu 20.04

So i'm trying to install react native in ubuntu 20.04, and i'm following this guide https://www.techomoro.com/install-and-setup-a-react-app-on-ubuntu/ , but when running "-g create-react-app" the terminal gives me these problems https://imgur.com/a/1tijndK , how do i solve them? i have node and npm installed (see the picture)
You npm version is suitable for this:
npx create-react-app your-app-name
npx command uses create-react-app without downloading it as global.
If you already added the create-react-app globally, uninstall it first.
#issue with npm
Try following command,
npx install create-react-app -g
npx create-react-app my-app
cd my-app
npm start
Sometimes the npm install doesn't work.
https://create-react-app.dev/docs/getting-started/
This seems like a an administrative access issues.
Trying running:
$sudo npx create-react-app my-app
It will ask you for the administrators password, fill that in and it should be up and running.

Cant Install expo cli

I'm trying to install Expo CLI for React Native
The latest version of Node js also installed
in command prompt, I typed npm install expo-cli --global
I'm getting error
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[..................] \ fetchMetadata: WARN deprecated request#2.88.2: request has been deprecated, see https://github.com
I also checked the GitHub issues/3142 but not found any solution
I was having the same issue install expo-cli with npm it gives WARN of request#2.88.2 deprecation, then what I did, simply install
npm install -g yarn
and after that
yarn global add expo-cli
and now it's successfully installed expo-cli, and I have the latest version of expo-cli as of today.
$ expo --version
3.15.4
It is not an error, it is just a warning so you should not worry. Everything seems fine. You can check your expo-cli installation within below command:
$ expo --version
2.21.2
By the way you don't have to install expo-cli at all. You can use npx expo init to create a expo project.
I had the same problem and it turned out my version of NodeJs was not supported. The documentation states that you need Node.js LTS release or greater.
This is the output when I attempted to install expo-cli then ran expo --version
Output:
ERROR: Node.js v12.10.0 is no longer supported.
expo-cli supports following Node.js versions:
* >=10.13.0 <11.0.0 (Maintenance LTS)
* >=12.13.0 <13.0.0 (Active LTS)
* >=14.0.0 <15.0.0 (Current Release)
I solved it by updating nodejs and reinstalled expo-cli with npm i --global expo-cli and it worked.