Skip to content

Managing node_modules between projects? #450

Answered by alymurtazamemon
aranyadan asked this question in Q&A
Discussion options

You must be logged in to vote

@aranyadan One solution is that you can install packages globally so that you will not be required to install them for every project. But I think this approach is not good, because each project has its own dependencies that are only required for that particular project, and installing it globally will take space forever. We do install packages globally like npm, but only those packages that we mostly use in every project.

And the second solution is that you can remove these node_modules folders from projects that you are no longer working on and when you start working on that project again you can install it with the command npm install and all dependencies will come again.

This is the ap…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PatrickAlphaC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants