Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i fix this? @grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0

ERROR:

@grpc/grpc-js only works on Node ^8.13.0 || >=10.10.0

like image 806
Mohamed Morsi Avatar asked Jul 18 '19 03:07

Mohamed Morsi


1 Answers

First of All You need to make sure to remove any conflicting versions of npm

sudo apt-get autoremove 

second use the following to install latest of npm

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - 

then

sudo apt-get install -y nodejs

that's for Debian distros, for another OS check this link: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions-enterprise-linux-fedora-and-snap-packages

Alternatively, you can also use

sudo npm install -g npm@latest

or for version 8.13.0 particularly

 sudo npm install -g [email protected]
like image 116
Jay Shenawy Avatar answered Sep 21 '22 19:09

Jay Shenawy