I am trying to run react native expo, it installed (via 'npm install -g expo-cli') globally and I created Project ('expo init react-project') and works fine. But i wend inside folder and run npm start / expo start , appears Errors as shown in picture. I also get Error on 'expo'.
I also deleted node_modules Folder and reinstall it (npm install) but didn't help.
Like you can see in Images, I have latest node,npn and Git versions. And its strange that , although I have installed expo globally, i get expo version on E:\ but not in subfolder (detail in screenshots).
Could anybody help me out?
Error on expo:
Error on npm start / expo start:
Latest Versions:
Related
I recently switched my laptop and cloned my project which was already working fine on the other laptop, when I installed node js in new laptop with version v16.15.0 and tried running "npm install" in my nuxt project as you can see in screen shot below. and gives error while installing #nuxtjs/sentry
also removing sentry package from package.json and nuxt.config.js and then running npm install to have all other dependencies works just fine.
And running "npm install #nuxtjs/sentry" gives the same error too.
I have been using React-Native for a project it's been more than a month, to create the app I uninstalled the react-native-cli and followed what is described in the official docs (https://reactnative.dev/docs/environment-setup). Yesterday, I modified an existing project (from github) and run :
npm install
npx react-native run-android
I had some errors so I updated npm, everything worked fine. I restarted my computer and tried to create a new app using the following command:
npx react-native init Test
This is the error that I get:
I uninstalled Node and installed the newest version (16.0.0) with npm version (7.11.2) and npx version (7.11.2).
Can someone please help me with this?
Uninstalling global packages
use this commond
npm uninstall -g react-native-cli
then restart computer and try create new app
I restarted my computer and tried to create a new app using the following command: npx react-native run-android Test
to create new app in react native use init not run-android
npx react-native init Test
i think you need to install react native cli but first Add npm path to your Environment variables; both system and user then install npm and react-native cli.
and if that does not work,Solution is to install react-native-cli globally You can install it globally by using the below command:
npm install -g react-native-cli
Everything working well but I don't know what happened, Now when I trying to hit Ionic Serve command it gives error and I have tried with different ionic version and node and npm version to fix the error but the issue remains same even I have tried to start from the fresh project but still no luck. I have attached the error page If anyone helps me it will be really grateful.
Versions that I have installed in my system -
Node = v10.15.3
Npm = 6.4.1
Ionic = CLI 4.12.0
Delete your node module folder which is inside your project then open your terminal and got to inside your project and use this following command "npm install --force" then "npm rebuild node-sass --force".
I'm new to react js, I have installed node js stable version. I have checked the node version and npm version it's working fine, I have tried to install react using "npm init react -app " & "npx create-react-app" but I'm getting an error I have tried all the suggestions (even I have uninstalled my anti-virus scanner) but it's not working. can anyone please help.
(Error screen shot "https://drive.google.com/file/d/17uWV6RX_e-ev-Afs5r4viqKTOL-SDsyY/view?usp=sharing")
1) Install node.js
2) Install npm by:
install npm –g
3) Create react app:
npx create-react-app test-app
Navigate to folder by:
cd test-app
Hope this will work.
I did some mess with the dependencies and installed the react-native-svg again even if expo already had. So i got the error while starting my application:
Unable to resolve "../lib/util" from "node_modules\react-native-
svg\elements\Text.js"
No matter what my source code is.
I tried so far to remove and reinstall the expo-cli
npm install expo-cli --global
I tried to remove manually the node_modules folder of the npm install on my computer and from my project folder
I tried to remove completely the project folder and to recreate a new project with the same name
But now even on clean project and after expo-cli reinstall I get the error above.
I'm lost in space
I’ve discovered that if you accidentally install a dependency that already exists in Expo this is the simplest way to get things running again:
Close all terminals running Expo
Close the browser window running Expo
Clear the project you were working on from the Expo app on your device.
Delete your package-lock.json
Delete your node_modules folder
Remove the dependency/dependencies that you shouldn’t have added from your package.json
Run npm i
Restart Expo using expo start -c