R
R
Returb02018-10-17 20:36:12
npm
Returb0, 2018-10-17 20:36:12

How to delete create-react-app globally?

Hello, I started learning React and immediately a question arose.
They say that in order to start working quickly with React, without separately installing things like babel or webpack, without putting down various dependencies, etc., you need to write the following in the console:
npm install -g create-react-app
This is explained as the fact that given the Create React App package is installed on the computer GLOBALLY
In general, a number of questions arose from here:
1) What does it mean GLOBALLY ?
2) Do I understand correctly that after a similar installation in the following projects, this Create React App package will no longer need to be installed (well, like, because we installed it "GLOBALLY")?
3) If my guesses are correct, then how, for example, to update the version of the same webpack, if it is already installed "GLOBALLY"?
4) How to remove the GLOBALLY installed Create React App
package 5) How to install the Create React App package not globally, but locally, i.e. for each project separately

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yanis_kondakov, 2018-10-17
@Returb0

1) This means that you can use create-react-app almost anywhere on your computer without having to reinstall the package. For example, in Linux, I prescribe the path where packages are installed globally and they are always there.
2) Yes.
3) You have create-react-app installed with webpack embedded in it. Therefore, you can only update it. If you really want to, you can eject and then update each package separately.
4) In the same way as any other package. Tyk npm uninstall -g create-react-app
5)npm install create-react-app

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question