[
https://issues.apache.org/jira/browse/CB-13252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16189301#comment-16189301
]
Steve Gill commented on CB-13252:
---------------------------------
It is happening because we run `npm install cordova-plugin-device` from within
the node_modules directory in cordova-fetch. In npm@5+, if you run npm install
in the node_modules directory and that module already exists, it creates a
broken symlink. Running it in the root of the project won't cause this issue.
So I switched cordova-fetch to that. Definitely a npm bug IMO. Didn't exist
before npm@5
Solved this bug with this PR. https://github.com/apache/cordova-fetch/pull/5
> Nightly causing npm symbolic link loop issues
> ---------------------------------------------
>
> Key: CB-13252
> URL: https://issues.apache.org/jira/browse/CB-13252
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-fetch
> Affects Versions: 7.0.2
> Reporter: Darryl Pogue
> Labels: tools-next
> Attachments: cordova.log
>
>
> Reproducible test case: https://github.com/dpogue/cordova-eloop (running with
> npm 5.4.0)
> Cordova prepare somehow decides to update the package.json to point a plugin
> at {{file:node_modules/cordova-plugin-<whatever>}}, leading to npm trying to
> install from a folder into the same folder and throwing ELOOP errors.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]