Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl option -: is unknown

Tags:

curl

ubuntu

I run this command to install an update version nodejs on ubuntu 18.04

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

I receive the error "curl option -: is unknown"

I have tried on multiple systems


1 Answers

if curl does not work (those options are fine and it might be a strange kind of hyphen or alike):

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

just use wget instead:

wget -qO- https://deb.nodesource.com/setup_12.x | sudo -E bash -
like image 178
Martin Zeitler Avatar answered Sep 03 '25 05:09

Martin Zeitler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!