请更新您的节点运行时版本> = 0.12.x
嗨,我正在与离子build立混合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 -gn 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)
,它允许您一次控制多个节点版本。
我build议使用NVM,因为这样可以避免使用sudo安装nodejs,这可能会导致其他问题。
我使用命令:
sudo npm cache clean sudo npm install -g cordova sudo npm install -g ionic
它对我有用。