Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people's questions, and connect with other people.

Have an account? Sign In

Captcha Click on image to update the captcha.

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here
Tech Answered Logo Tech Answered Logo
Sign InSign Up

Tech Answered

Tech Answered Navigation

  • Home
  • Tutorials
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Blog
  • Contact Us
Home / Questions /Q 1021
Next
In Process
Namrata Podder
Namrata Podder

Namrata Podder

  • India
  • 5 Questions
  • 12 Answers
  • 1 Best Answer
  • 59 Points
View Profile
  • 0
Namrata Podder
Asked: October 17, 20202020-10-17T17:41:12+05:30 2020-10-17T17:41:12+05:30In: Web Development

How to install React on my pc ?

  • 0

Can anyone tell me how to install React on my computer?

I’m following the instructions written on the React docs but it is giving an error in cmd  ‘npm’ is not recognized as internal or external command, operable program or batch file. 

 

install reactjavascriptreactweb developement
  • 2
  • 2,134
  • 0
  • 0
Answer
Share
  • Facebook

    Related Questions

    • React native vs flutter, which is best to use in development
    • Can you use JavaScript with MySQL?
    • what java is used for ?
    • which one of these is the most different? javascript php ruby python mysql
    • How to host a dynamic React app developed on MERN stack on internet?
    • Can I use any other function instead of using isNaN() function in javascript?
    • Can php and javascript work together ?

    2 Answers

    1. Ravi Ujjwal

      Ravi Ujjwal

      • India
      • 12 Questions
      • 68 Answers
      • 4 Best Answers
      • 242 Points
      View Profile
      Ravi Ujjwal
      2020-10-19T10:37:00+05:30Added an answer on October 19, 2020 at 10:37 am
      This answer was edited.

      React installation is very simple but before that you need to set up few things first. Package managers like npm and yarn. The error you got because npm is not installed on your system so the system is not recognizing the npm command.

      Installing npm:

      You need to install Node.JS first. Head over to https://nodejs.org/en/ and download the latest version. I’ll prefer LTS version as it is considered most stable.

      According to npm website. npm is distributed with Node.js- which means that when you download Node.js, you automatically get npm installed on your computer.

      Installing yarn:

      This step is purely optional. Proceed only when you’re done setting up Node.JS.

      Install chocolatey first. Head over here for complete steps. https://chocolatey.org/install

      Then in the CMD type,

      choco install yarn

      Installing React:

      npx create-react-app my-app

      cd my-app
      npm start

      Done! I hope this solves your issue.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    2. Pooja Jakhar

      Pooja Jakhar

      • India
      • 48 Questions
      • 44 Answers
      • 2 Best Answers
      • 154 Points
      View Profile
      Pooja Jakhar
      2020-10-19T19:31:43+05:30Added an answer on October 19, 2020 at 7:31 pm

      To install React on Windows follow these simple steps –

      • First of all, open command prompt. To open run command box, use Windows+R keys. Type in cmd and then tap on OK button.
      • Then, you need to create a project folder naming reactproject1. Tap on Enter button and you will get  new directory called reactproject1. If you have done it as part of  Command Prompt examples, you can skip this step completely since it will notify you that it already exists.
      • Then, go to project folder, using cd reactproject1, so that you can install React into it. You will get  prompt indicate as – C:\Users\ReactUser\reactproject1
      • Now, you need to create a package.json file using command – npm init
      • Finally, install React & some other modules using npm install — save react, it is going to install React into the project and update package.json file with dependencies.

      That’s all, you need to do to install React on Windows.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
    Leave an answer

    Leave an answer
    Cancel reply

    Browse

    Sidebar

    Ask A Question

    More Questions

    • arunraj503

      How to Add, Install SSL Certificate to Your Website

    • EmmaScott

      What are some key considerations when designing a logo for

    • dynamicapps5

      Image Gallery With Animations Using HTML And CSS Code

    • SEO_BRISK

      What part does content play in SEO, and what impact

    • sita

      How to add scrolling text in Blogger

    • Mia_Mia

      Direction

    • nora khan

      how are sitemaps important for the seo process

    • shree

      How to choose color combinations for website

    Stats

    • Questions 1,985
    • Answers 2,097
    • Posts 12
    • Best Answers 73

    Related Questions

    • dynamicapps5

      React native vs flutter, which is best to use in development

    • Mingle tap

      Can you use JavaScript with MySQL?

    • Pooja Jakhar

      what java is used for ?

    • shree

      which one of these is the most different? javascript php ruby python

    • Ravi Ujjwal

      How to host a dynamic React app developed on MERN stack on

    • Rohan Rathore

      Can I use any other function instead of using isNaN() function in

    • Hardik

      Can php and javascript work together ?

    Explore

    • Home
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help

    Footer

    Recent Comments

    • shree on How to use philips citrus press juicer 25 watts Demo
    • kiran kumar85 on How To Insert Names Automatically in Excel Sheet With VBA Code
    • Satish on How To Insert Names Automatically in Excel Sheet With VBA Code
    • jameslaurence on alarm won’t go off while on facetime how to fix
    • jameslaurence on how to solve export problem in kinemaster
    Ask A Question

    Archives

    Tags

    laptop buying guide (1) limit google news notifications (1) printer buying guide (1) stop google news notifications (1) turn off google news notifications (1)

    Social media

    © 2023 @ Techanswered.com.
    Terms, Privacy policy & Sitemap.

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.