简体   繁体   English

在Ubuntu中的cordova-ionic中启动新项目时出错

[英]Error when start a new project in cordova-ionic in Ubuntu

I have the next problem, i have installed cordova version 7.0.1 , node version 4.2.6 , but i have this error if all is correct in when instal Node JS and Cordova y ionic? 我有下一个问题,我安装了cordova版本7.0.1和节点版本4.2.6,但是如果在安装Node JS和Cordova y ionic时一切正确,则会出现此错误?

why I have this problem? 为什么我有这个问题?

sommer@sommer-AO532h:~$ cordova -v
7.0.1
sommer@sommer-AO532h:~$ 
sommer@sommer-AO532h:~$ ionic -v
ERR: Your Node.js version is v4.2.6. Please update to the latest Node 6 LTS version (or latest Node).
sommer@sommer-AO532h:~$ node -v
v4.2.6
sommer@sommer-AO532h:~$ ionic start todo blank --type ionic1
ERR: Your Node.js version is v4.2.6. Please update to the latest Node 6 LTS version (or latest Node).
sommer@sommer-AO532h:~$

From the Requirements Section from ionic-cli GitHub Page - 来自ionic-cli GitHub页面需求部分-

  • Node 6 LTS (latest) 节点6 LTS(最新)
  • npm 3+ npm 3+

So you need Node 6 LTS to use ionic-cli , The Ionic command line interface (CLI) ie the one that you are using. 因此,您需要Node 6 LTS来使用ionic-cli ,即Ionic命令行界面(CLI),即您正在使用的界面。

So update it first and then use ionic-cli . 因此,请先对其进行更新,然后使用ionic-cli

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

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