please help since past two days I have same issue unable to create a new app in react in linux mint
CodePudding user response:
Please try the sudo command like below:
sudo npm i -g create-react-app
CodePudding user response:
To install npm on Ubuntu Linux, login into your server as a sudo user and invoke the command below:
$ sudo apt install npm
The installation of npm also installs node.js and you can confirm the version of node installed using the command:
$ node --version
create-react-app is a utility that enables you to set up all the tools required to create a React Application. It saves you a great deal of time and energy setting everything from scratch and gives you the head start needed.
To install the tool, run the following npm command:
$ sudo npm -g install create-react-app
Creating a React application is quite simple & straightforward. We are going to create a react app called test-app as follows.
$ create-react-app test-app