简体   繁体   English

安装离子Cordova时出错

[英]Error installing ionic cordova

$ npm install -g cordova ionic
npm ERR! Unexpected end of input at 1:172390
npm ERR! version":"3.20.2","dependencies":
{"basic-auth":"1.0.0","connect":"2.2 

npm ERR!                                                                      

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Inspiron 15\AppData\Roaming\npm-cache\_logs\2017-08-
01T08_02_19_789Z-debug.log

I'm keep getting this error while trying to install cordova ionic. 尝试安装cordova ionic时,我一直收到此错误。 I've already installed node js latest version to my computer. 我已经在计算机上安装了Node js最新版本。

Try : 尝试:

sudo apt-get install nodejs nodejs-legacy npm

And then : 接着 :

sudo npm install -g cordova

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

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