[
https://issues.apache.org/jira/browse/CB-13001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099132#comment-16099132
]
Gareth Jones edited comment on CB-13001 at 7/24/17 9:23 PM:
------------------------------------------------------------
I'd class this as a pretty major bug, and the given solution forces us to use
an older version of npm, which leaves us missing out on the great things npm@5
has to offer (such as it's new performance).
On top of that, downgrading to npm@4 doesn't actually solve it: I had this
issue when trying to remove the ios platform, which was solved by installing
[email protected] but upon running npm install, the same error happened.
The solution was to delete my package-lock.json and my vendor directory.
I suspect this issue might occur if you use a package-lock.json with npm@4 as
well.
was (Author: g-rath):
I'd class this as a pretty major bug, and the given solution forces us to use
an older version of npm, which leaves us missing out on the great things npm@5
has to offer (such as it's new performance).
On top of that, downgrading to npm@4 doesn't actually solve it: I had this
issue when trying to remove the ios platform, which was solved by installing
[email protected] but upon running npm install, the same error happened.
> NPM Installation loop with package-lock.json and cordova-plugin-device
> ----------------------------------------------------------------------
>
> Key: CB-13001
> URL: https://issues.apache.org/jira/browse/CB-13001
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-device
> Affects Versions: 1.1.0, 7.0.0, 1.1.3, 1.1.1, 7.0.2, [email protected], 7.0.1
> Environment: Docker environment on bitrise.io & Windows 10 64-bit
> with nodejs 6.9.1 and NPM 5.0.4
> Reporter: Paedly
>
> If this lines are in the {{package-lock.json}} I get a symlink loop on my
> linux docker environment.
> {code:javascript} "cordova-plugin-device": {
> "version": "1.1.6",
> "resolved":
> "https://registry.npmjs.org/cordova-plugin-device/-/cordova-plugin-device-1.1.6.tgz",
> "integrity": "sha1-LSF2TK18m4AVI+TgmjDgJLJJM0s="
> },{code}
> Here is the {{package.json}}:
> {code:javascript}{
> "version": "0.0.1",
> "author": "Ionic Framework",
> "homepage": "http://ionicframework.com/",
> "private": true,
> "dependencies": {
> "cordova-plugin-device": "^1.1.6"
> },
> "devDependencies": {
> "@ionic/cli-plugin-cordova": "1.4.0",
> "@ionic/cli-plugin-ionic-angular": "1.3.1",
> "typescript": "2.3.4"
> },
> "cordova": {
> "plugins": {
> "cordova-plugin-device": {}
> },
> "platforms": [
> "android",
> "ios"
> ]
> }
> }{code}
> *And this is the error.*
> {code}Error: npm: Command failed with exit code 216 Error output:
> npm ERR! path
> /bitrise/src/node_modules/cordova-plugin-device/package.json
> npm ERR! code ELOOP
> npm ERR! errno -40
> npm ERR! syscall open
> npm ERR! ELOOP: too many symbolic links encountered, open
> '/bitrise/src/node_modules/cordova-plugin-device/package.json'{code}
> Don't know what the problem is with this {{package-lock.json}} entry.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]