简体   繁体   English

错误离子-Cordova安装

[英]Error ionic - cordova installation

I'm trying to launch ionic and cordova on Ubuntu 14.04 but occur this error: 我正在尝试在Ubuntu 14.04上启动Ionic和Cordova,但发生此错误:

module.js:327
throw err;
^


Error: Cannot find module 'bplist-parser'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-common/src/ConfigChanges/ConfigFile.js:20:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)

Anyone know how to solve this? 有人知道如何解决吗? I'm using node v4.4.0, npm 3.8.0 我正在使用节点v4.4.0,npm 3.8.0

Thanks! 谢谢!

It seems that your system need some more modules. 您的系统似乎需要更多模块。 Try install missed modules: 尝试安装错过的模块:

sudo npm install -g bplist-parser

and you can refer to this ionic forum error post: https://forum.ionicframework.com/t/error-cannot-find-module-bplist-parser/38551 并且您可以参考此ionic论坛错误文章: https : //forum.ionicframework.com/t/error-cannot-find-module-bplist-parser/38551

Try install bplist-parser: 尝试安装bplist-parser:

sudo npm install -g bplist-parser

And it seems that you have some components not be installed, so maybe other error tips will come out because of missing components. 似乎您尚未安装某些组件,因此可能由于缺少组件而出现其他错误提示。 Just install them like above command. 就像上面的命令一样安装它们。 Hope this will help you , if not, could you describe when you encounter this problem? 希望这对您有帮助,如果不能,您能否描述遇到此问题的时间? Sorry for I could not figure out what's the meaning of launch ionic and cordova . 对不起,我无法弄清楚ionionic和cordova的含义是什么。

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

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