Skip to main content

Posts

Showing posts from February, 2021

React errors and trouble-shooting

 Introduction: I have recently started learning react in a linux machine and as I proceeded, I faced a number of issues with react,npm and npx. As I tried searching in net, it seemed that many of these are not well explained or documented together. In this post, we are going to document the errors and the solution which worked for me. Error 1: npx create-react-app fails to run with error. For this, I found this stackoverflow question to be helpful. If your npx fails, chances are that you have to first start your npm and then you need to run the npx command. The relevant code to run is: npm init npm install create-react-app npx create-react-app myapp Error 2: NPM — npm start Error: ENOSPC: System limit for number of file watchers reached   For this error, I followed this guide blog post . But sadly the solution is slightly incorrect. First, let's understand the problem. Max user watch error occurs in a linux machine because the number of files the system watches/monitors ...