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

Christian Tschanz edited comment on CB-9626 at 7/11/17 7:37 AM:
----------------------------------------------------------------

This leads to serious build issues for us. Is there any plan to remove this 
dependency? When is the target for that?

Is it safe to remove the dependency on npm manually from cordova-lib when using 
cordova 7.0.1?

//Edit: So as a workaround I did the following: clone the [email protected] 
project and remove everything in it to then move the contents of the 
cordova-lib folder to the top folder (Seems like this won't be necessary 
anymore for 7.0.2+, thank god) then I simply removed the npm dependency from 
the package.json. Now you can add this modified cordova-lib to your project's 
package.json (before the cordova depdendency) and it will install your modified 
version. This will break cordova as it depends on a locally installed npm. So 
after you installed everything with npm run 'npm link npm' in your project 
folder to link your global npm into the local packages. cordova will then work 
fine with your globally installed npm.
I had no problems with this but I am not sure if this could subtly break stuff. 


was (Author: chtsch):
This leads to serious build issues for us. Is there any plan to remove this 
dependency? When is the target for that?

Is it safe to remove the dependency on npm manually from cordova-lib when using 
cordova 7.0.1?

> Cordova-Lib requires NPM as a dependency
> ----------------------------------------
>
>                 Key: CB-9626
>                 URL: https://issues.apache.org/jira/browse/CB-9626
>             Project: Apache Cordova
>          Issue Type: Wish
>          Components: cordova-lib
>            Reporter: Robert Baker
>
> I'm using NPM 3.x (3.3.2) and cordova-create is installing NPM 2.x in my node 
> modules folder.
> There should be a way around this, I rather not have a copy of NPM 
> (especially an older copy) in my node_modules.
> NPM 3.x is stable, included in node 5.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to