Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm WARN deprecated [email protected]: Please upgrade to version 7 or higher

Tags:

uuid

npm

I am getting this error whenever I am trying to install the firebase in my ubuntu.

I used the command: sudo npm install - firebase cli, but I am not able the log in as it is saying firebase command not found.

like image 811
Aayush Bhatt Avatar asked Oct 15 '22 20:10

Aayush Bhatt


3 Answers

Basically, the error suggests you should upgrade [email protected] version to 7 or higher.

Below is the message of the package author on the deprecation;

Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

You can run npm install uuid@latest so as to upgrade to the latest stable version of uuid.

like image 200
nyedidikeke Avatar answered Oct 22 '22 17:10

nyedidikeke


try this npm install [email protected] --force

like image 45
Tien Nguyen Minh Avatar answered Oct 22 '22 17:10

Tien Nguyen Minh


DO npm cache clean --force and than npm install [email protected] --force

work for me

like image 2
Imron Maulana Avatar answered Oct 22 '22 16:10

Imron Maulana