cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Gill (JIRA)" <>
Subject [jira] [Commented] (CB-13252) Nightly causing npm symbolic link loop issues
Date Tue, 03 Oct 2017 06:04:00 GMT


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.

> Nightly causing npm symbolic link loop issues
> ---------------------------------------------
>                 Key: CB-13252
>                 URL:
>             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: (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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message