[
https://issues.apache.org/jira/browse/CB-13004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16081413#comment-16081413
]
Shazron Abdullah commented on CB-13004:
---------------------------------------
Thanks to @steve gill for debugging this issue.
TLDR; [email protected] causes this bug - upgrade to [email protected] (that fixes it).
Steve's findings:
{code}
but only happens on 3.9.5
confirmed it works fine for [email protected]
the gist of what is happening.
`dependency-ls` gets a json representation of what is installed in
`node_modules`. It runs `npm ls --depth=0` under the hood to only look at root
modules. We run this before and after we `npm install cordova-ios` in
`cordova-fetch` and then compare the two json objects to figure out what was
exactly installed. This is one of two methods we use to figure out what module
was just installed.
for some f*ed up reason, `[email protected] ` when you run npm install and `npm ls
--depth=0`, you get a module that is a dep showing up as a root module.
`[email protected]`. (edited)
that is causing the issue
it isn't actually installed as a root module
just showing up when i type `npm ls --depth=0`
not sure where the bug is on their side
but they obviously fixed in in later 3.x releases
solution: update off npm 3.9.5
bug is not in dependency-ls
{code}
> Failed to fetch cordova-ios 4.4.0
> ---------------------------------
>
> Key: CB-13004
> URL: https://issues.apache.org/jira/browse/CB-13004
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-fetch
> Affects Versions: [email protected]
> Environment: MacOS Sierra
> Cordova 7.0 - iOS App
> Reporter: Thorsten Peters
> Priority: Blocker
> Labels: cordova-8.0.0
> Attachments: npm-debug.log
>
>
> Hey all,
> i'm not able to add the iOS-Platform on my App-Project which didn't make any
> Problems with Cordova 6.5.
> Im always getting the Error below:
> {code}
> Error: Failed to fetch platform cordova-ios@~4.4.0
> Probably this is either a connection problem, or platform spec is incorrect.
> Check your connection and platform name/version/URL.
> Error: npm: Command failed with exit code 254 Error output:
> npm WARN enoent ENOENT: no such file or directory, open
> '/Users/alfons/Desktop/sales_app_prod/package.json'
> npm WARN sales_app_prod No description
> npm WARN sales_app_prod No repository field.
> npm WARN sales_app_prod No README data
> npm WARN sales_app_prod No license field.
> npm ERR! Darwin 16.6.0
> npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
> "cordova-ios@~4.4.0" "--save"
> npm ERR! node v6.2.2
> npm ERR! npm v3.9.5
> npm ERR! path
> /Users/alfons/Desktop/sales_app_prod/node_modules/.staging/xml-escape-0c2ef147
> npm ERR! code ENOENT
> npm ERR! errno -2
> npm ERR! syscall rename
> npm ERR! enoent ENOENT: no such file or directory, rename
> '/Users/alfons/Desktop/sales_app_prod/node_modules/.staging/xml-escape-0c2ef147'
> ->
> '/Users/alfons/Desktop/sales_app_prod/node_modules/cordova-ios/node_modules/xml-escape'
> npm ERR! enoent ENOENT: no such file or directory, rename
> '/Users/alfons/Desktop/sales_app_prod/node_modules/.staging/xml-escape-0c2ef147'
> ->
> '/Users/alfons/Desktop/sales_app_prod/node_modules/cordova-ios/node_modules/xml-escape'
> npm ERR! enoent This is most likely not a problem with npm itself
> npm ERR! enoent and is related to npm not being able to find a file.
> npm ERR! enoent
> npm ERR! Please include the following file with any support request:
> npm ERR! /Users/alfons/Desktop/sales_app_prod/node_modules/npm-debug.log
> {code}
> My you please help me?
> Thank you verry much!!
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]