PhoneGap Note 1
A good memory cannot catch up with the bad pen. Looking back, we can only find the truth! If you don't need to talk about it, you can start billing. All operations are based on the old Mac 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 cordovanpm WARN engine cordova-serve@0.1.3: 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/cordovacordova@5.3.1/usr/local/lib/node_modules/cordova ── underscore@1.7.0 ── q@1.0.1 ── nopt@3.0.1 (abbrev@1.0.7) ── cordova-lib@5.3.1 (valid-identifier@0.0.1, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, unorm@1.3.3, semver@4.3.6, shelljs@0.3.0, cordova-app-hello-world@3.9.0, npm@2.14.5, dep-graph@1.1.0, rc@0.5.2, xcode@0.8.0, elementtree@0.1.6, Npmconf@2.1.2, glob@4.0.6, request@2.47.0, cordova-registry-mapper@1.1.11, cordova-serve@0.1.3, tar@1.0.2, init-package-json@1.9.1, aliasify@1.7.2, cordova-js@4.1.1) it seems that the version is a little low and the nodejs v4.1.1 Mac is directly installed using the pkg package... $ 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 cordovaPassword: npm WARN engine xmlbuilder@2.2.1: 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/cordovac Ordova@5.3.1/usr/local/lib/node_modules/cordova ── underscore@1.7.0 ── q@1.0.1 ── nopt@3.0.1 (abbrev@1.0.7, cordova-lib@5.3.1, valid-identifier@0.0.1, unorm@1.3.3, osenv@0.1.0, properties-parser@0.2.3, bplist-parser@0.0.6, dep-graph@1.1.0, shelljs@0.3.0, xcode@0.8.0, rc@0.5.2, elementtree@0.1.6, cordova-app-hello-world@3.9.0, cordova-serve@0.1.3, glob@4.0.6, reques T@2.47.0, aliasify@1.7.2, cordova-registry-mapper@1.1.11, tar@1.0.2, plist@1.1.0, init-package-json@1.9.1, npm@2.14.5, cordova-js@4.1.1) and prompt Nima .. The node version corresponding to xmlbuilder@2.2.1 is too high. $ Cordova-v5.3.1