NPM is incorrect version on latest Ubuntu (18.04) installation

Normal installation would be sudo apt install nodejs to install Node.js and then sudo apt install npm to install Node Package Manager. However, upon doing so, npm -v says 3.5.2. To upgrade normally, I would do sudo npm install -g npm, which updates to the latest version (which, at the time of writing this article, … Read more

Can’t install npm – Unable to correct problems, you have held broken packages?

I am trying to upgrade my nodejs to 7.6 but failed. Now I have a new problem after re-installing node 6.10: $ sudo apt-get purge nodejs npm Reading package lists… Done Building dependency tree Reading state information… Done Package ‘npm’ is not installed, so not removed The following packages were automatically installed and are no … Read more

npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed [duplicate]

This question already has answers here: Unable to correct problems, you have held broken packages (13 answers) Closed 2 years ago. I want to install npm. I’ve updated everything but I can’t fix the problem. The message I get is: Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not … Read more

How to install the latest versions of NodeJS and NPM?

I noticed over at the https://nodejs.org/ website that node is currently at v 0.12.0. Can someone let me know how to install the latest version of node together with npm (terminal commands please)? Answer Fresh installation Use the NodeSource PPA. For details look at the installation instructions. First, choose the Node.js version you need and … Read more

How do I remove the error in vue create?

I am new to vuejs and vuetify. First I ran the command npm install @vue/cli -g. Then I ran the command vue create test. And I am getting this error: C:\Users\Dell\AppData\Roaming\npm\node_modules\@vue\cli\node_modules\vue-templat e-compiler\index.js:10 throw new Error( ^ Error: Vue packages version mismatch: – vue@2.5.17 (C:\Users\Dell\node_modules\vue\dist\vue.runtime.common.js) – vue-template-compiler@2.6.10 (C:\Users\Dell\AppData\Roaming\npm\node_modules\@ vue\cli\node_modules\vue-template-compiler\package.json) This may cause things to work incorrectly. … Read more

Can’t update npm to newest version on Ubuntu

First, I install npm sudo apt-get install -y npm Which installs npm version 3.5.2. Then I try to update it to newest version and it fails. Could not find a proper solution for this. sudo npm install npm@latest -g ▌ ╢░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟ WARN engine npm@7.5.2: wanted: {“node”:”>=10″} (current: {“node”:”8.10.0″,”npm”:”3.5.2″}) WARN engine npm@7.5.2: wanted: {“node”:”>=10″} (current: {“node”:”8.10.0″,”npm”:/usr/local/lib … Read more

How to fix `listen EACCES: permission denied` on any port

Has anyone experienced something liked this with node: I was running Angular, my Windows crashed and restarted and now when I try ng serve I’m getting: Error: listen EACCES: permission denied 127.0.0.1:4200 at Server.setupListenHandle [as _listen2] (net.js:1253:19) at listenInCluster (net.js:1318:12) at GetAddrInfoReqWrap.doListen [as callback] (net.js:1451:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10) I also tried ng serve … Read more