A
A
Ahegao2018-10-31 21:51:04
npm
Ahegao, 2018-10-31 21:51:04

Does the order in which node_modules are installed matter?

For example, when installing react-redux in a project, the console gives me an error that redux itself is required directly .
Will there be any errors because of this in the future, or is the installation order completely unimportant, and most importantly, that the package dependencies are installed?
And is it also worth using an entry like this:
npm i react redux react-redux react-router-dom prop-types
Or is it better to install each package separately?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Romashkan, 2018-10-31
@Ahegao

No difference. You can at least delete the entire node_modules folder and install everything from packages.json en masse via npm install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question