PhoneGap Notes 1

Source: Internet
Author: User

A good memory can not catch the bad pen, looking back to discover is the truth!

Nonsense not to say, began to journal. All operations are based on Mac


Old Environment:

$NPM version

{http_parser: ' 1.0 ',

Node: ' 0.10.32 ',

V8: ' 3.14.5.9 ',

Ares: ' 1.9.0-dev ',

UV: ' 0.10.28 ',

Zlib: ' 1.2.3 ',

Modules: ' 11 ',

OpenSSL: ' 1.0.1i ',

NPM: ' 2.1.6 '}

$cordova-V

3.0.0


Update Installation:

$sudo NPM install-g Cordova

NPM WARN engine [email protected]: Wanted: {"node": ">= 0.12.0", "NPM": ">= 2.5.1"} (current: {"node": "0.10.32", "NPM" : "2.1.6"})

/usr/local/bin/cordova-/usr/local/lib/node_modules/cordova/bin/cordova

[Email protected]/usr/local/lib/node_modules/cordova

├──[email protected]

├──[email protected]

├──[email protected] ([email protected])

└──[email protected] ([e-mail protected], [email protected], [email protected], [email protected], [email protected], [EMA Il protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email prote CTED], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [ Email protected], [email protected], [email protected], [email protected], [email protected])


It seems the version is a little low,

Install Nodejs v4.1.1 Mac directly with pkg package installed ...

Attached: https://nodejs.org/dist/

$NPM version

{npm: ' 2.14.4 ',

Ares: ' 1.10.1-dev ',

Http_parser: ' 2.5.0 ',

Modules: ' 46 ',

Node: ' 4.1.1 ',

OpenSSL: ' 1.0.2d ',

UV: ' 1.7.4 ',

V8: ' 4.5.103.33 ',

Zlib: ' 1.2.8 '}


Update Cordova again

$sudo NPM install-g Cordova

Password:

NPM WARN engine [email protected]: Wanted: {"node": "0.8.x | | 0.10.x "} (current: {" node ":" 4.1.1 "," NPM ":" 2.14.4 "})

/usr/local/bin/cordova-/usr/local/lib/node_modules/cordova/bin/cordova

[Email protected]/usr/local/lib/node_modules/cordova

├──[email protected]

├──[email protected]

├──[email protected] ([email protected])

└──[email protected] ([e-mail protected], [email protected], [email protected], [email protected], [email protected], [EMA Il protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email prote CTED], [email protected], [email protected], [email protected], [email protected], [email protected], cord[email protected ], [email protected], [email protected], [email protected], [email protected], [email protected])

Also hint of the ".   [email protected] The corresponding node version is too high. Let's go.

$cordova-V

5.3.1


Installation of a DMG installation package that is directly used phonegapdesktop this way

Attached: https://github.com/phonegap/phonegap-app-desktop/tree/master/installers


Finished using the Phonegapdesktop tool to build a project, or directly using the Cordova command line

$ Cordova Create Hello Com.example.hello HelloWorld


Basic operating procedures See Cordova Reference files

Attached address: Http://cordova.apache.org/docs/en/5.0.0//guide_cli_index.md.html#The%20Command-Line%20Interface



Cond

This article from "Micro-desire for-micro-life" blog, declined to reprint!

PhoneGap Notes 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.