Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change NPM version? [duplicate]

I am trying to install some packages for React-Native project but its shows me NPM version error so, How can I upgrade.

My current version is 4

like image 784
Jatin parmar Avatar asked Mar 06 '23 13:03

Jatin parmar


1 Answers

Hey for updating npm just fire this command in terminal

npm i npm@5 -g

here -g is for global if you want to install only for one project then just remove -g from this. Thanks, Hope this will help you.

like image 120
Narendra Solanki Avatar answered Mar 15 '23 06:03

Narendra Solanki