ELOOP: too many symbolic links encountered


#1

Its happening when install local notifications

Steps to reproduce:

1)ionic start newBlank blank
2) ionic cordova plugin add de.appplant.cordova.plugin.local-notification
3) npm install --save @ionic-native/local-notifications

in step 3 throws:

npm ERR! path /home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json
npm ERR! code ELOOP
npm ERR! errno -40
npm ERR! syscall open
npm ERR! ELOOP: too many symbolic links encountered, open ‘/home/marcelo/Documents/ionic/newblank/node_modules/cordova-plugin-app-event/package.json’

npm ERR! A complete log of this run can be found in:
npm ERR! /home/marcelo/.npm/_logs/2017-06-19T14_09_29_521Z-debug.log

global packages:

@ionic/cli-utils : 1.4.0
Cordova CLI      : 7.0.1 
Ionic CLI        : 3.4.0

local packages:

@ionic/app-scripts              : 1.3.7
@ionic/cli-plugin-cordova       : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms               : android 6.2.3
Ionic Framework                 : ionic-angular 3.4.2

System:

Node       : v7.8.0
OS         : Linux 4.4
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed
npm        : 5.0.3

#2

I am having the same issue…


#3

It is only in step 3, really?
Can you create a new project and switch steps 2 and 3 so you first install the ionic-native plugin and then the Cordova plugin?


#4

In that case works, but i get other errors related. See:

marcelo@marcelo-X555LF:~/Documents/ionic/teste$ npm install --save @ionic-native/local-notifications

  • @ionic-native/local-notifications@3.12.1
    added 1 package and removed 1 package in 4.891s
    marcelo@marcelo-X555LF:~/Documents/ionic/teste$ ionic cordova plugin add de.appplant.cordova.plugin.local-notification
    ? The plugin @ionic/cli-plugin-cordova is not installed. Would you like to insta
    ll it and continue? Yes

npm install --save-dev --save-exact @ionic/cli-plugin-cordova@latest
:heavy_check_mark: Running command - done!
cordova plugin add de.appplant.cordova.plugin.local-notification --save
:heavy_check_mark: Running command - done!
Adding de.appplant.cordova.plugin.local-notification to package.json
Saved plugin info for “de.appplant.cordova.plugin.local-notification” to config.xml

When ionic cordova build android run:

cordova platform add --save android
:heavy_multiplication_x: Running command - failed!
[ERROR] An error occurred while running cordova platform add --save android
(exit code 1):

    Using cordova-fetch for cordova-android@~6.2.2
    Adding android project...
    Creating Cordova project for the Android platform:
    Path: platforms/android
    Package: io.ionic.starter
    Name: MyApp
    Activity: MainActivity
    Android target: android-25
    Subproject Path: CordovaLib
    Android project created with cordova-android@6.2.3
    Installing "de.appplant.cordova.plugin.local-notification" for android
    Failed to install 'de.appplant.cordova.plugin.local-notification': Error
    at
    /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/fetch.js:205:33
    at _rejected
    (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:864:24)
    at
    /usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:890:30
    at Promise.when
    (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
    at Promise.promise.promiseDispatch
    (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
    at
    /usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:624:44
    at runSingle
    (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
    at flush
    (/usr/local/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
    Error: Failed to fetch plugin cordova-plugin-device via registry.
    Probably this is either a connection problem, or plugin spec is
    incorrect.
    Check your connection and plugin name/version/URL.
    Failed to get absolute path to installed module

#5

Are you on a unstable connection? Rerun the same (last) command with --debug added at the end.


#6

No, my local conection is working normally. Running with --debug i get:

marcelo@marcelo-X555LF:~/Documents/ionic/teste$ ionic cordova build android --debug
Running app-scripts build: --iscordovaserve --externalIpRequired --nobrowser

[10:33:04] build dev started …
[10:33:04] clean started …
[10:33:04] clean finished in 2 ms
[10:33:04] copy started …
[10:33:04] transpile started …
[10:33:07] transpile finished in 2.79 s
[10:33:07] preprocess started …
[10:33:07] deeplinks started …
[10:33:07] deeplinks finished in 16 ms
[10:33:07] preprocess finished in 17 ms
[10:33:07] webpack started …
[10:33:08] copy finished in 3.22 s
[10:33:16] webpack finished in 8.65 s
[10:33:16] sass started …
[10:33:17] sass finished in 1.21 s
[10:33:17] postprocess started …
[10:33:17] postprocess finished in 5 ms
[10:33:17] lint started …
[10:33:17] build dev finished in 12.77 s

cordova build android --debug
⠙ Running command [10:33:19] lint finished in 2.18 s
:heavy_multiplication_x: Running command - failed!

[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build android --debug (exit code
1):

    (truncated) ... fig.xml. You might need to try adding it again. Error:
    Failed to fetch plugin cordova-plugin-whitelist@1.3.1 via registry.
    Probably this is either a connection problem, or plugin spec is
    incorrect.
    Check your connection and plugin name/version/URL.
    Error: npm: Command failed with exit code 216 Error output:
    npm ERR! path
    /home/marcelo/Documents/ionic/teste/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
    '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T13_33_47_987Z-debug.log
    Discovered plugin "ionic-plugin-keyboard" in config.xml. Adding it to
    the project
    Failed to restore plugin "ionic-plugin-keyboard" from config.xml. You
    might need to try adding it again. Error: Failed to fetch plugin
    ionic-plugin-keyboard@~2.2.1 via registry.
    Probably this is either a connection problem, or plugin spec is
    incorrect.
    Check your connection and plugin name/version/URL.
    Error: npm: Command failed with exit code 216 Error output:
    npm ERR! path
    /home/marcelo/Documents/ionic/teste/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
    '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T13_33_53_618Z-debug.log
    ANDROID_HOME=/opt/android-sdk/
    JAVA_HOME=/usr/lib/jvm/java-8-oracle
    :wrapper
    
    BUILD SUCCESSFUL
    
    Total time: 11.861 secs
    
    This build could be faster, please consider using the Gradle Daemon:
    https://docs.gradle.org/2.10/userguide/gradle_daemon.html
    Subproject Path: CordovaLib
    Starting a Gradle Daemon (subsequent builds will be faster)
    The Task.leftShift(Closure) method has been deprecated and is scheduled
    to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
    at
    build_dz89hvvt6lwni0ughmk25dddr.run(/home/marcelo/Documents/ionic/teste/platforms/android/build.gradle:137)
    The JavaCompile.setDependencyCacheDir() method has been deprecated and
    is scheduled to be removed in Gradle 4.0.
    Incremental java compilation is an incubating feature.
    The TaskInputs.source(Object) method has been deprecated and is
    scheduled to be removed in Gradle 4.0. Please use
    TaskInputs.file(Object).skipWhenEmpty() instead.
    :preBuild UP-TO-DATE
    :preDebugBuild UP-TO-DATE
    :checkDebugManifest
    :CordovaLib:preBuild UP-TO-DATE
    :CordovaLib:preDebugBuild UP-TO-DATE
    :CordovaLib:checkDebugManifest
    :CordovaLib:prepareDebugDependencies
    :CordovaLib:compileDebugAidl
    :CordovaLib:compileDebugNdk UP-TO-DATE
    :CordovaLib:compileLint
    :CordovaLib:copyDebugLint UP-TO-DATE
    :CordovaLib:mergeDebugShaders
    :CordovaLib:compileDebugShaders
    :CordovaLib:generateDebugAssets
    :CordovaLib:mergeDebugAssets
    :CordovaLib:mergeDebugProguardFiles
    :CordovaLib:packageDebugRenderscript UP-TO-DATE
    :CordovaLib:compileDebugRenderscript
    :CordovaLib:generateDebugResValues
    :CordovaLib:generateDebugResources
    :CordovaLib:packageDebugResources
    :CordovaLib:processDebugManifest
    :CordovaLib:generateDebugBuildConfig
    :CordovaLib:processDebugResources
    :CordovaLib:generateDebugSources
    :CordovaLib:incrementalDebugJavaCompilationSafeguard
    :CordovaLib:compileDebugJavaWithJavac
    :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs
    have changed, no previous execution, etc.).
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    :CordovaLib:processDebugJavaRes UP-TO-DATE
    :CordovaLib:transformResourcesWithMergeJavaResForDebug
    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
    :CordovaLib:mergeDebugJniLibFolders
    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
    :CordovaLib:bundleDebug
    :prepareOrgApacheCordovaCordovaLib623DebugLibrary
    :prepareDebugDependencies
    :compileDebugAidl
    :compileDebugRenderscript
    :generateDebugBuildConfig
    :generateDebugResValues
    :generateDebugResources
    :mergeDebugResources
    :processDebugManifest
    :processDebugResources
    :generateDebugSources
    :incrementalDebugJavaCompilationSafeguard
    :compileDebugJavaWithJavac
    :compileDebugJavaWithJavac - is not incremental (e.g. outputs have
    changed, no previous execution, etc.).
    :compileDebugNdk UP-TO-DATE
    :compileDebugSources
    :mergeDebugShaders
    :compileDebugShaders
    :generateDebugAssets
    :mergeDebugAssets
    :transformClassesWithDexForDebug
    :mergeDebugJniLibFolders
    :transformNative_libsWithMergeJniLibsForDebug
    :processDebugJavaRes UP-TO-DATE
    :transformResourcesWithMergeJavaResForDebug
    :validateSigningDebug
    :packageDebug
    :assembleDebug
    :cdvBuildDebug
    
    BUILD SUCCESSFUL
    
    Total time: 26.145 secs
    Built the following apk(s):
    /home/marcelo/Documents/ionic/teste/platforms/android/build/outputs/apk/android-debug.apk

#7

Again please, without the ionic in front. (Sorry, debugging this stuff is reaaaaallly hard sometimes)

(Use the </> button above the post input field to format your output, that makes is look much better than the " button)


#8

Relax, i know how debbuging is ridiculous hard sometimes. Running whitout ionic prefix command:


cordova build android --debug

Discovered plugin "cordova-plugin-console" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-console" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-console@1.0.5 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 216 Error output:
npm ERR! path /home/marcelo/Documents/ionic/teste/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 '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T16_13_23_936Z-debug.log
Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-device" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-device@1.1.4 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 216 Error output:
npm ERR! path /home/marcelo/Documents/ionic/teste/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 '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T16_13_38_848Z-debug.log
Discovered plugin "cordova-plugin-splashscreen" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-splashscreen" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-splashscreen@~4.0.1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 216 Error output:
npm ERR! path /home/marcelo/Documents/ionic/teste/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 '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T16_13_44_893Z-debug.log
Discovered plugin "cordova-plugin-statusbar" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-statusbar" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-statusbar@2.2.2 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 216 Error output:
npm ERR! path /home/marcelo/Documents/ionic/teste/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 '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T16_13_50_311Z-debug.log
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin cordova-plugin-whitelist@1.3.1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 216 Error output:
npm ERR! path /home/marcelo/Documents/ionic/teste/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 '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T16_13_55_568Z-debug.log
Discovered plugin "ionic-plugin-keyboard" in config.xml. Adding it to the project
Failed to restore plugin "ionic-plugin-keyboard" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin ionic-plugin-keyboard@~2.2.1 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 216 Error output:
npm ERR! path /home/marcelo/Documents/ionic/teste/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 '/home/marcelo/Documents/ionic/teste/node_modules/cordova-plugin-device/package.json'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/marcelo/.npm/_logs/2017-06-20T16_14_00_692Z-debug.log
ANDROID_HOME=/opt/android-sdk/
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_dz89hvvt6lwni0ughmk25dddr.run(/home/marcelo/Documents/ionic/teste/platforms/android/build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareOrgApacheCordovaCordovaLib623DebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:compileDebugJavaWithJavac UP-TO-DATE
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-DATE
:mergeDebugJniLibFolders UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:validateSigningDebug
:packageDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE

BUILD SUCCESSFUL

Total time: 8.752 secs
Built the following apk(s): 
	/home/marcelo/Documents/ionic/teste/platforms/android/build/outputs/apk/android-debug.apk

#9

Do you have something new about it? Any solution or tip?


#10

Try with an older npm version (pre 5) please.


#11

Ok, let’s go! I changed the node and npm versions using n and downgraded to:

System:

    Node       : v7.8.0
    npm        : 4.2.0

Again, rerunning the same commands and same step by step:

  1. ionic start newBlank blank

Log:

marcelo@marcelo-X555LF:~/Documents/ionic$ ionic start teste blank
✔ Creating directory ./teste - done!
[INFO] Fetching app base
       (https://github.com/ionic-team/ionic2-app-base/archive/master.tar.gz)
✔ Downloading - done!
[INFO] Fetching starter template blank
       (https://github.com/ionic-team/ionic2-starter-blank/archive/master.tar.gz)
✔ Downloading - done!
✔ Updating package.json with app details - done!
✔ Creating configuration file ionic.config.json - done!
[INFO] Installing dependencies may take several minutes!
> npm install
✔ Running command - done!
> npm install --save-dev --save-exact @ionic/cli-plugin-ionic-angular@latest
✔ Running command - done!
> git init
✔ Running command - done!
> git add -A
✔ Running command - done!
> git commit -m "Initial commit" --no-gpg-sign
✔ Running command - done!

♬ ♫ ♬ ♫  Your Ionic app is ready to go! ♬ ♫ ♬ ♫

Run your app in the browser (great for initial development):
  ionic serve

Run on a device or simulator:
  ionic cordova run ios

Test and share your app on a device with the Ionic View app:
  http://view.ionic.io
  
? Link this app to your Ionic Dashboard to use tools like Ionic View? No

Go to your newly created project: cd ./teste
  1. ionic cordova plugin add de.appplant.cordova.plugin.local-notification

Log:


marcelo@marcelo-X555LF:~/Documents/ionic/teste$ ionic cordova plugin add de.appplant.cordova.plugin.local-notification
> cordova plugin add de.appplant.cordova.plugin.local-notification --save
✔ Running command - done!
Installing "de.appplant.cordova.plugin.local-notification" for android
Plugin dependency "cordova-plugin-device@1.1.4" already fetched, using that version.
Dependent plugin "cordova-plugin-device" already installed on android.
Installing "cordova-plugin-app-event" for android
ANDROID_HOME=/opt/android-sdk/
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_dz89hvvt6lwni0ughmk25dddr.run(/home/marcelo/Documents/ionic/teste/platforms/android/build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:clean
:CordovaLib:clean

BUILD SUCCESSFUL

Total time: 1.414 secs
Subproject Path: CordovaLib
Adding de.appplant.cordova.plugin.local-notification to package.json
Saved plugin info for "de.appplant.cordova.plugin.local-notification" to config.xml
  1. npm install --save @ionic-native/local-notifications

Log:


marcelo@marcelo-X555LF:~/Documents/ionic/teste$ npm install --save @ionic-native/local-notifications
teste@0.0.1 /home/marcelo/Documents/ionic/teste
└── @ionic-native/local-notifications@3.12.1 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/home/marcelo/Documents/ionic/teste/node_modules/etc/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/marcelo/Documents/ionic/teste/node_modules/node_modules/package.json'

And finally, without errors:

  1. ionic cordova build android

marcelo@marcelo-X555LF:~/Documents/ionic/teste$ ionic cordova build androidRunning app-scripts build: --iscordovaserve --externalIpRequired --nobrowser

[20:20:45]  build dev started ... 
[20:20:46]  clean started ... 
[20:20:46]  clean finished in 3 ms 
[20:20:46]  copy started ... 
[20:20:46]  transpile started ... 
[20:20:48]  transpile finished in 2.21 s 
[20:20:48]  preprocess started ... 
[20:20:48]  deeplinks started ... 
[20:20:48]  deeplinks finished in 11 ms 
[20:20:48]  preprocess finished in 13 ms 
[20:20:48]  webpack started ... 
[20:20:48]  copy finished in 2.36 s 
[20:20:55]  webpack finished in 7.21 s 
[20:20:55]  sass started ... 
[20:20:56]  sass finished in 1.12 s 
[20:20:56]  postprocess started ... 
[20:20:56]  postprocess finished in 4 ms 
[20:20:56]  lint started ... 
[20:20:56]  build dev finished in 10.61 s 
> cordova build android
⠇ Running command [20:20:58]  lint finished in 1.98 s 
✔ Running command - done!
ANDROID_HOME=/opt/android-sdk/
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_dz89hvvt6lwni0ughmk25dddr.run(/home/marcelo/Documents/ionic/teste/platforms/android/build.gradle:137)
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.
Incremental java compilation is an incubating feature.
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:preReleaseBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders
:CordovaLib:compileDebugShaders
:CordovaLib:generateDebugAssets
:CordovaLib:mergeDebugAssets
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest
:CordovaLib:generateDebugBuildConfig
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:incrementalDebugJavaCompilationSafeguard
:CordovaLib:compileDebugJavaWithJavac
:CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseAidl
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseShaders
:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:processReleaseManifest
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:incrementalReleaseJavaCompilationSafeguard
:CordovaLib:compileReleaseJavaWithJavac
:CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareComAndroidSupportSupportCompat2600Alpha1Library
:prepareComAndroidSupportSupportCoreUi2600Alpha1Library
:prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
:prepareComAndroidSupportSupportFragment2600Alpha1Library
:prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
:prepareComAndroidSupportSupportV42600Alpha1Library
:prepareOrgApacheCordovaCordovaLib623DebugLibrary
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript
:generateDebugBuildConfig
:generateDebugResValues
:generateDebugResources
:mergeDebugResources
:processDebugManifest
:processDebugResources
:generateDebugSources
:incrementalDebugJavaCompilationSafeguard
:compileDebugJavaWithJavac
:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
:compileDebugNdk UP-TO-DATE
:compileDebugSources
:mergeDebugShaders
:compileDebugShaders
:generateDebugAssets
:mergeDebugAssets
:transformClassesWithDexForDebug
:mergeDebugJniLibFolders
:transformNative_libsWithMergeJniLibsForDebug
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug
:validateSigningDebug
:packageDebug
:assembleDebug
:cdvBuildDebug

BUILD SUCCESSFUL

Total time: 14.947 secs
Built the following apk(s): 
	/home/marcelo/Documents/ionic/teste/platforms/android/build/outputs/apk/android-debug.apk

#12

Great!

But:

This shouldn’t happen and indicates that something is still a little bit strange somewhere.


#13

I will search about this. For now, it’s working. Thank you.


#14

5 posts were split to a new topic: Npm ERR! ELOOP: too many symbolic links encountered, open ‘/Users/vagrant/git/node_modules/cordova-plugin-device/package.json’


Npm ERR! ELOOP: too many symbolic links encountered, open '/Users/vagrant/git/node_modules/cordova-plugin-device/package.json'