npm install eslint missing argument error
I have tried above but it, unfortunately, didn't work for me. The other way could be this:
Update nodejs to latest version:
sudo npm install -g n sudo n latest
Update npm to latest version:
sudo npm install -g npm
Do what @runcible suggested:
hash -d npm
Try npm install:
npm i
For me the suggested solutions above didn't worked to install a newer version of node. I did it with curl. Here for Node 15.x newest so far
sudo apt install nodejs
curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash -
sudo apt install nodejs
Your npm version is too old (4 years old), you need to update it
npm i -g npm
Also consider updating node
, version 8 is End-of-life
since 31 Decembre 2019.
https://github.com/nodejs/Release