+ 1

Do I have to do npm install to run each project in reactjs. Is it possible that I can install it globally so that there is no ne

Do I have to do npm install to run each project in reactjs. Is it possible that I can install it globally so that there is no need to install it again and again in every project?

25th Jul 2022, 6:00 AM
Bharat Bhushan
Bharat Bhushan - avatar
2 odpowiedzi
+ 6
Yes, you can install any node.js package globally by using -g flag during the installation. For example: npm i -g react But, global install also makes all of your projects using the same version of the package.
25th Jul 2022, 3:40 PM
Amethyst Animion
Amethyst Animion - avatar
+ 2
Thank You So Much Amethyst Animion
25th Jul 2022, 5:28 PM
Bharat Bhushan
Bharat Bhushan - avatar