user8305604
user8305604

Reputation:

how to install React-Native NPM packages?

I am install React-Native project with this code:

create-react-native-app AwesomeProject

This project is located in desktop and I want install react-native-card-stack from npm.

Then I input this code on command prompt:

npm install --save react-native-card-stack  

When I check cd /desktop/AwesomeProject here in ide of node_modules I can't find react-native-card-stack

My question is, where can I run npm install --save react-native-card-stack node_modules?

Appreciate your guys help.

Upvotes: 3

Views: 16427

Answers (1)

MD Aslam Ansari
MD Aslam Ansari

Reputation: 1565

You can start from first

Step 1 Open terminal and type:

create-react-native-app AwesomeProject

Step 2 Once the project is created it will show list of options : type command

cd AwesomeProject

Step 3 Add the package

npm install --save react-native-card-stack 

Step 4 Run the project

npm start

That is all you need to do. Now you can scan from your expo app to run the project in your phone directly.

Note if the app shows error while running run npm install

Upvotes: 4

Related Questions