I want to start developing native apps with react-native and i am also using VScode as my code editor, i keep running in to error when trying to start my project using this command "expo init First project", so how do you think i can overcome this error
You should first install the expo-cli with npm install --global expo-cli before starting a project
Once you have Node.js installed run the following command:
npm install -g expo-cli
After successfully installing the Expo CLI you can initialize a brand new project by running the following command:
expo init <name of project goes here>
cd <name of project goes here>
npm start
Below is an example of how this will work:
expo init my-todo-app
cd my-todo-app
npm start
Related
i'm new to react native and i've been following https://reactnative.dev/docs/environment-setup and in the 'Start Metro' step, npx react-native start doesn't work
pls help
Please make sure you installed Node first with Homebrew:
brew install node
brew install watchman
Try yarn start or npm start after you installed node.
I want to install react-native cli but I don't where to run this command: npm install -g react-native-cli. Do I need to run this command on my macOS terminal or when I will make a directory for my react native app then there I need to run this command in vscode?
Is there any issue if I run this command in my terminal or If I run this in VScode?
React Native is distributed as two npm packages, react-native-cli and react-native.
The first one is a lightweight package that should be installed globally (npm install -g react-native-cli), while the second one contains the actual React Native framework code and is installed locally into your project when you run react-native init.
Because react-native init calls npm install react-native, simply linking your local GitHub clone into npm is not enough to test local changes.
npm install –g react-native-cli
· This line installs the npm package react-native-cli along with its dependencies(from the npm repository host) inside the globally shared node_modules folder.
· Global install (with -g): puts stuff in /usr/local or wherever node is installed. This will also allow you to access the module from the command-line, as the bin is symlinked into a PATH folder (usually usr/local/bin).
Refer below link
https://rlogicaltech.medium.com/how-to-install-react-native-on-mac-step-by-step-guide-1ac822aedd4f
You can run the command anywhere in the terminal.
It will install the react-native-cli globally as we are specifying the "-g" option in the command.
Use this
npm install -g expo-cli
this how I solved it.
npm install -save react-native#latest
Adonis command neither give error nor works
I just clone the Node project from one PC to another. Installed npm and adonis. Now my Node project is working when I open the URL at which it is serving it shows me the login page.
When in try to execute the Migration command, cli is neither executing the command nor giving any error.
Try to reinstall #adonisjs/cli :
Uninstall (Globally):
> npm uninstall -g #adonisjs/cli
Install (Globally):
> npm i -g #adonisjs/cli
#adonisjs/cli must be installed globally (it's not a project dependency)
Installation - AdonisJS documentation
I tried to setup MEAN stack where I required angular to be installed. When I tried this command "npm install -g generator-angular-fullstack", I ended up with following error in terminal.enter image description here
No Need to install fullstack for angular js. you can simply go with installation of angular like npm install angular and include dependency in your respective index.html file
You can use this link for refernace
Facing problem of creating project in React Native (iOS ). i have installed the following commands successfully:
1. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. npm install -g react-native-cli
3. brew install node
4. brew install watchman
5. brew install flow
When i run the command "react-native init AwesomeProject" , it shows following error;
-bash: react-native: command not found
FYI : In my mac home directory, it just create a file name "npm-debug.log".
I can't proceed on.
How i can create and run a project ?
My directory is: