繁体   English   中英

请更新您的Node运行时版本> = 0.12.x

[英]Please update your Node runtime to version >=0.12.x

嗨,我正在与Ionic合作构建混合HTML应用程序。

我正在运行的每个命令都会收到以下警告:

******************************************************
 Upgrade warning - for the CLI to run correctly,
 it is highly suggested to upgrade the following:

 Please update your Node runtime to version  >=0.12.x

******************************************************

如果可以的话,请告诉我如何更新节点运行时版本

这只是要求升级Node 我通常将nvm与命令nvm install <version> && nvm use <version>或者可以按以下方式使用节点帮助程序:

sudo npm cache clean -f
sudo npm install -g n

sudo n stable // for stable version
sudo n 0.12.7 // for specific version like v0.12.7

// check the node version after install
node -v

要在Ubuntu或Debian上安装Node.js v5.x:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

# Using Debian, as root
curl -sL https://deb.nodesource.com/setup_5.x | bash -
apt-get install -y nodejs

这取决于您如何将node.js安装到计算机上。 您可以转到https://nodejs.org/并获取更新的版本,也可以使用Node Version Manager (NVM) ,它允许您一次控制多个节点版本。

我建议使用NVM,因为这样可以避免必须使用sudo安装nodejs,否则可能会导致其他问题。

我使用命令:

sudo npm cache clean
sudo npm install -g cordova
sudo npm install -g ionic

它对我有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM