Tools, FAQ, Tutorials:
Issue to Install "npm 5.x" on Ubuntu 18
Why I can only install "npm 3.5.2" on Ubuntu 18?
✍: FYIcenter.com
If you are running Ubuntu 18,
the default "apt install npm" command
will only insatlle "npm 3.5.2:
$ sudo apt install npm ... installing the "npm" package $ sudo apt install npm Reading package lists... Done Building dependency tree Reading state information... Done npm is already the newest version (3.5.2-0ubuntu4).
This is caused by issue inside "apt".
What you can do is try to reinstall both "nodejs" and "npm":
# Complete Un-install $ sudo apt-get purge nodejs npm $ sudo apt-get autoremove $ sudo apt-get update # Fresh install $ sudo npm install -g npm $ npm --version 5.5.1 $ sudo apt install nodejs
Â
⇒ "gyp ERR! stack Error: EACCES: permission denied"
⇠Warning on Incompatible "npm" Version
2021-04-04, 614👍, 0💬
Popular Posts:
How To Control Horizontal Alignment in Table Cells? By default, text in all table cells are aligned ...
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to add an API to an API product for internal testing on the Publisher Portal of an Azure API Man...
Where Can I get a copy of the RSS XML Schema? RSS XML Schema is an XML Schema that defines how an RS...
How To Pad an Array with the Same Value Multiple Times in PHP? If you want to add the same value mul...