Tested with node 4 and: 1. npm@2.15.12 (latest npm@2) --> bug shows 2. npm@3.0.0 -> bug fixed
The fix for node 4 is to upgrade your npm to at least npm@3.0.0 or greater. On Fri, Sep 8, 2017 at 6:03 PM, Shazron <shaz...@gmail.com> wrote: > It turns out it's an npm issue. > > ``` > $ npm --version > 2.15.9 > $ node --version > v4.6.0 > $ npm install -g npm@latest > $ npm --version > 5.4.1 > ``` > > Using the latest npm with node 4 fixes the issue. > > > On Fri, Sep 8, 2017 at 5:52 PM, Shazron <shaz...@gmail.com> wrote: > >> Others seem to concur, that by "upgrading" to at least node 6, it fixes >> this issue, so it's definitely a node 4 CLI issue: >> https://stackoverflow.com/questions/44042641/cordova- >> error-your-ios-platform-does-not-have-api-js >> >> On Fri, Sep 8, 2017 at 5:36 PM, Shazron <shaz...@gmail.com> wrote: >> >>> This is a CLI issue under node 4, not sure if it's fixed. It's a >>> cordova-fetch issue. If you use --nofetch it's fine. >>> The cordova platform itself is tested under nodes 4 and 6, and those >>> pass. >>> >>> On Fri, Sep 8, 2017 at 3:22 PM, julio cesar sanchez < >>> jcesarmob...@gmail.com> wrote: >>> >>>> I'm trying to do cordova platform add >>>> https://github.com/apache/cordova-ios#4.5.0 and getting this error >>>> >>>> Using CLI 7.0.1: >>>> >>>> cordova platform add https://github.com/apache/cordova-ios#4.5.0 >>>> Using cordova-fetch for https://github.com/apache/cordova-ios#4.5.0 >>>> Adding ios project... >>>> Using this version of Cordova with older version of cordova-ios is >>>> deprecated. Upgrade to cordova-ios@4.0.0 or newer. >>>> Error: Your ios platform does not have Api.js >>>> >>>> Using nightly CLI: >>>> >>>> cordova platform add https://github.com/apache/cordova-ios#4.5.0 >>>> Warning: using prerelease version 7.0.2-nightly.2017.9.7.596da5df >>>> (cordova-lib@7.0.2-nightly.2017.9.7.6f5be6a7) >>>> Using cordova-fetch for https://github.com/apache/cordova-ios#4.5.0 >>>> Adding ios project... >>>> Unable to load PlatformApi from platform. Error: Cannot find module >>>> 'unorm' >>>> Error: Uncaught, unspecified "error" event. (The platform "ios" does not >>>> appear to be a valid cordova platform. It is missing API.js. ios not >>>> supported.) >>>> >>>> Should it be a -1? >>>> >>>> node -v >>>> v4.4.7 >>>> >>>> npm -v >>>> 2.15.8 >>>> >>>> 2017-09-06 4:38 GMT+02:00 Shazron <shaz...@gmail.com>: >>>> >>>> > Related: https://issues.apache.org/jira/browse/CB-13170 >>>> > >>>> > On Tue, Sep 5, 2017 at 5:38 PM, Shazron <shaz...@gmail.com> wrote: >>>> > >>>> > > It will (linker error, duplicate symbols, since we did not rename >>>> the >>>> > > Obj-C class, which is for the best). We'll just have to document >>>> how to >>>> > fix >>>> > > it (remove the console plugin). Should be minimal impact. >>>> > > >>>> > > On Fri, Sep 1, 2017 at 7:18 PM, Jan Piotrowski < >>>> piotrow...@gmail.com> >>>> > > wrote: >>>> > > >>>> > >> ... like all Ionic projects for example: >>>> > >> https://github.com/ionic-team/ionic2-app-base/blob/master/ >>>> > config.xml#L87 >>>> > >> >>>> > >> Will this trip these up somehow? >>>> > >> >>>> > >> -J >>>> > >> >>>> > >> 2017-08-31 23:44 GMT+02:00 Filip Maj <maj....@gmail.com>: >>>> > >> > By the way, I think we should include notes about >>>> > >> > cordova-plugin-console being integrated in the blog post / >>>> > >> > announcement for this release - that may trip up folks trying to >>>> > >> > update cordova-ios, if they had the console plugin manually >>>> installed >>>> > >> > already. >>>> > >> > >>>> > >> > On Thu, Aug 31, 2017 at 7:21 PM, Shazron <shaz...@gmail.com> >>>> wrote: >>>> > >> >> Stalled on testing and fixing https://github.com/apache/cord >>>> > >> ova-ios/pull/335 >>>> > >> >> before a release can be sent for vote >>>> > >> >> >>>> > >> >> On Thu, Aug 24, 2017 at 4:12 PM, Shazron <shaz...@gmail.com> >>>> wrote: >>>> > >> >> >>>> > >> >>> Issues on the board have been completed, the PRs need review: >>>> > >> >>> >>>> > >> >>> Board: >>>> > >> >>> https://issues.apache.org/jira/secure/RapidBoard.jspa?rapidV >>>> iew=173 >>>> > >> >>> >>>> > >> >>> Pull requests: >>>> > >> >>> 1. https://github.com/apache/cordova-ios/pull/326 >>>> > >> >>> 2. https://github.com/apache/cordova-ios/pull/331 >>>> > >> >>> 3. https://github.com/apache/cordova-ios/pull/332 >>>> > >> >>> >>>> > >> >>> >>>> > >> >>> On Tue, Aug 22, 2017 at 6:00 PM, Shazron <shaz...@gmail.com> >>>> wrote: >>>> > >> >>> >>>> > >> >>>> Renamed board to 4.5.0, left Fil's issue and another that has >>>> a PR >>>> > >> that >>>> > >> >>>> is almost done review: >>>> > >> >>>> https://issues.apache.org/jira/secure/RapidBoard.jspa? >>>> > rapidView=173 >>>> > >> >>>> >>>> > >> >>>> On Tue, Aug 22, 2017 at 11:47 AM, Shazron <shaz...@gmail.com> >>>> > wrote: >>>> > >> >>>> >>>> > >> >>>>> I'll get that in as the lone issue on the board. >>>> > >> >>>>> I'm also thinking this should be 4.5.0 instead of 4.4.1 >>>> because >>>> > >> there is >>>> > >> >>>>> a new feature in there. >>>> > >> >>>>> >>>> > >> >>>>> On Tue, Aug 22, 2017 at 9:20 AM, Filip Maj < >>>> maj....@gmail.com> >>>> > >> wrote: >>>> > >> >>>>> >>>> > >> >>>>>> CB-12830 [1] is something that I think we should sneak in >>>> to the >>>> > >> >>>>>> release, time permitting. >>>> > >> >>>>>> >>>> > >> >>>>>> [1] https://issues.apache.org/jira/browse/CB-12830 >>>> > >> >>>>>> >>>> > >> >>>>>> On Sat, Aug 12, 2017 at 4:05 AM, Shazron <shaz...@gmail.com >>>> > >>>> > >> wrote: >>>> > >> >>>>>> > 😂 I do! yes 4.4.1 >>>> > >> >>>>>> > >>>> > >> >>>>>> > On Aug 11, 2017 at 5:40 PM, julio cesar sanchez < >>>> > >> >>>>>> jcesarmob...@gmail.com> >>>> > >> >>>>>> > wrote: >>>> > >> >>>>>> > >>>> > >> >>>>>> > >>>> > >> >>>>>> > You probably mean 4.4.1 >>>> > >> >>>>>> > >>>> > >> >>>>>> > El 11 ago. 2017 3:37 p. m., "Steven Gill" < >>>> > >> stevengil...@gmail.com> >>>> > >> >>>>>> escribió: >>>> > >> >>>>>> > >>>> > >> >>>>>> > Yay! >>>> > >> >>>>>> > >>>> > >> >>>>>> > On Aug 11, 2017 12:19 PM, "Shazron" <shaz...@gmail.com> >>>> wrote: >>>> > >> >>>>>> > >>>> > >> >>>>>> > Long overdue. >>>> > >> >>>>>> > >>>> > >> >>>>>> > The board is here: >>>> > >> >>>>>> > https://issues.apache.org/jira >>>> /secure/RapidBoard.jspa?rapidV >>>> > >> iew=173 >>>> > >> >>>>>> > >>>> > >> >>>>>> > Any issues in the left column that absolutely need to go >>>> in? If >>>> > >> not I >>>> > >> >>>>>> > >>>> > >> >>>>>> > will >>>> > >> >>>>>> > >>>> > >> >>>>>> > punt them to the next release. >>>> > >> >>>>>> >>>> > >> >>>>>> ------------------------------ >>>> ------------------------------ >>>> > >> --------- >>>> > >> >>>>>> To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org >>>> > >> >>>>>> For additional commands, e-mail: >>>> dev-h...@cordova.apache.org >>>> > >> >>>>>> >>>> > >> >>>>>> >>>> > >> >>>>> >>>> > >> >>>> >>>> > >> >>> >>>> > >> > >>>> > >> > ------------------------------------------------------------ >>>> --------- >>>> > >> > To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org >>>> > >> > For additional commands, e-mail: dev-h...@cordova.apache.org >>>> > >> > >>>> > >> >>>> > >> ------------------------------------------------------------ >>>> --------- >>>> > >> To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org >>>> > >> For additional commands, e-mail: dev-h...@cordova.apache.org >>>> > >> >>>> > >> >>>> > > >>>> > >>>> >>> >>> >> >