参考资料:https://www.cnblogs.com/bpdxqx/p/6061719.html
1、安装nodejs(自动包含npm)
2、在命令行中通过npm语句npm install -g cordova 安装cordova