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, ∼1558🔥, 0💬
Popular Posts:
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the de...
Where Is the Submitted Form Data Stored in PHP? When a user submit a form on your Web server, user e...
How to access URL template parameters from "context.Request.Matched Parameters"object in Azure API P...
How to Install Docker Desktop on Windows 10? You can follow this tutorial to Install Docker Desktop ...
How to use the "set-variable" Policy Statement to create custom variables for an Azure API service o...