node -v表示v4.2.3,但是yum install说没什么可做的

时间:2018-04-27 15:05:33

标签: node.js centos yum

我正在尝试在CREATE DEFINER=`root`@`localhost` PROCEDURE `getTotalVolumeByDateRange`(start_time timestamp, time_interval int) BEGIN DECLARE max_date date; DECLARE min_date date; DECLARE temp_end_date date; SET min_date = DATE(start_time); SELECT DATE(MAX(createdAt)) FROM VolumeData INTO max_date; -- SELECT max_date, min_date; CREATE TEMPORARY TABLE tempRangedVolumeData( start_date date, end_date date, Volume decimal(5,2) ); while min_date <= max_date DO SET temp_end_date = DATE_ADD(min_date, Interval time_interval DAY); INSERT INTO tempRangedVolumeData(start_date, end_date, Volume) SELECT min_date, temp_end_date, SUM(Volume) FROM VolumeData WHERE DATE(CreatedAt) BETWEEN min_date and temp_end_date; SET min_date = DATE_ADD(min_date, Interval time_interval+1 DAY); end while; select start_date, end_date, coalesce(Volume,0) as Volume from tempRangedVolumeData; drop table tempRangedVolumeData; END 服务器中安装最新版本的node.js

CentOS 6.9

我目前的版本似乎是v4.2.3。我使用以下行来安装新版本:

root@server [~]# node -v
v4.2.3

它说:

curl --silent --location https://rpm.nodesource.com/setup_9.x | sudo bash -
sudo yum -y install nodejs

Loaded plugins: fastestmirror, universal-hooks Setting up Install Process Loading mirror speeds from cached hostfile * EA4: 70.87.220.252 * cpanel-addons-production-feed: 70.87.220.252 * base: dist1.800hosting.com * epel: fedora-epel.mirror.lstn.net * extras: mirror.dal10.us.leaseweb.net * updates: repo1.dal.innoscale.net Package 2:nodejs-9.11.1-1nodesource.x86_64 already installed and latest version Nothing to do

的输出
rpm -qa |grep node*

0 个答案:

没有答案