[ 
https://issues.apache.org/jira/browse/CB-14171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16523881#comment-16523881
 ] 

Oliver Salzburg commented on CB-14171:
--------------------------------------

I checked the location where `Failed to get absolute path to installed module` 
is emitted and it appears as if an attempt is made to look for the plugin in 
`node_modules/plugin-push`, which lacks the scope part. A more extensive search 
approach is taken if the location is invalid. This search approach scans 
through *all* modules in `node_modules`, but doesn't traverse down into scopes.

My initial thought was to allow this search to traverse down into scopes to 
look for the correct install location. Any thoughts on that?

> Unable to install scoped npm plugin from git
> --------------------------------------------
>
>                 Key: CB-14171
>                 URL: https://issues.apache.org/jira/browse/CB-14171
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-fetch
>    Affects Versions: 1.3.0
>            Reporter: Oliver Salzburg
>            Priority: Major
>
> When attempting to install a plugin from a git URL and the plugin is under an 
> npm scope, the installation fails.
>  
> {{$ cordova plugin add 
> [https://github.com/fairmanager-cordova/plugin-push.git] --verbose --debug}}
>  {{No scripts found for hook "before_plugin_add".}}
>  {{Calling plugman.fetch on plugin 
> "https://github.com/fairmanager-cordova/plugin-push.git"}}
>  {{saving}}
>  {{Running command: cmd "/s /c 
> "C:\Users\OliverSalzburg\AppData\Local\nvs\default\npm.cmd install 
> [https://github.com/fairmanager-cordova/plugin-push.git] --production 
> --save""}}
>  {{Command finished with error code 0: cmd /s /c 
> "C:\Users\OliverSalzburg\AppData\Local\nvs\default\npm.cmd install 
> [https://github.com/fairmanager-cordova/plugin-push.git] --production 
> --save"}}
>  {{
> { CordovaError: Failed to get absolute path to installed module}
> }



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to