I'm setting up a new server (Ubuntu 18.10), and I can't seem to get the latest Babel installed. I'm doing:
apt-get -y install npm
sudo npm install -g babel-cli
npm install --save-dev @babel/core
Yet when I look at the version it tells me I'm only on version 6.26.3 (not what I want, as some of the plugins I need are reliant on > 7.0 version - thus re-building the server)
Any suggestions on what to try?
UPDATE: Not sure if this is related, but for some reason the server has 2 instances of npm, with quite different versions:
root@east:/home/steampunkdev/web/xxx.net/node_modules# /usr/bin/npm -v
5.8.0
root@east:/home/steampunkdev/web/xxxx.net/node_modules# /usr/local/bin/npm -v
6.13.0
UPDATE 2: This is what I get when I try and find the latest version of the babel-core
package:
npm view babel-core version
6.26.3
I just don't get why its not seeing 7.7.2 as the latest.