Ionic upload not working

Hi,

When i typed ionic upload, i got this error output:

Emirhans-MacBook-Air:deneme_notification emirhankosem$ ionic upload 
[INFO] Running app-scripts build: 
       
[14:06:19]  build dev started ... 
[14:06:20]  clean started ... 
[14:06:20]  clean finished in 4 ms 
[14:06:20]  copy started ... 
[14:06:20]  transpile started ... 
[14:06:22]  transpile finished in 2.93 s 
[14:06:22]  preprocess started ... 
[14:06:22]  deeplinks started ... 
[14:06:22]  deeplinks finished in 12 ms 
[14:06:22]  preprocess finished in 12 ms 
[14:06:22]  webpack started ... 
[14:06:23]  copy finished in 3.33 s 
[14:06:34]  webpack finished in 11.89 s 
[14:06:34]  sass started ... 
[14:06:36]  sass finished in 2.11 s 
[14:06:36]  postprocess started ... 
[14:06:36]  postprocess finished in 5 ms 
[14:06:36]  lint started ... 
[14:06:36]  build dev finished in 17.00 s 
> ionic cordova prepare
> cordova prepare
⠙ Running command [14:06:39]  lint finished in 2.84 s 
✖ Running command - failed!
[ERROR] An error occurred while running cordova prepare (exit code 1):

        
        (truncated) ... ugin-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 194 Error output:
        npm ERR! path 
        /Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json
        npm ERR! code ELOOP
        npm ERR! errno -62
        npm ERR! syscall open
        npm ERR! ELOOP: too many symbolic links encountered, open 
        '/Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json'
        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 194 Error output:
        npm WARN checkPermissions Missing write access to 
        /Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device
        npm WARN ajv-keywords@2.1.0 requires a peer of ajv@>=5.0.0 but none was installed.
        
        npm ERR! path /Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device
        npm ERR! code ELOOP
        npm ERR! errno -62
        npm ERR! syscall access
        npm ERR! ELOOP: too many symbolic links encountered, access 
        '/Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device'
        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 194 Error output:
        npm ERR! path 
        /Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json
        npm ERR! code ELOOP
        npm ERR! errno -62
        npm ERR! syscall open
        npm ERR! ELOOP: too many symbolic links encountered, open 
        '/Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json'
        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 194 Error output:
        npm ERR! path 
        /Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json
        npm ERR! code ELOOP
        npm ERR! errno -62
        npm ERR! syscall open
        npm ERR! ELOOP: too many symbolic links encountered, open 
        '/Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json'
        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 194 Error output:
        npm ERR! path 
        /Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json
        npm ERR! code ELOOP
        npm ERR! errno -62
        npm ERR! syscall open
        npm ERR! ELOOP: too many symbolic links encountered, open 
        '/Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json'
        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 194 Error output:
        npm ERR! path 
        /Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json
        npm ERR! code ELOOP
        npm ERR! errno -62
        npm ERR! syscall open
        npm ERR! ELOOP: too many symbolic links encountered, open 
        '/Volumes/Macintosh2/IonicWorkspace/deneme_notification/node_modules/cordova-plugin-device/npm-shrinkwrap.json'

IONIC INFO output:


cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:

    Cordova CLI : 7.0.1 

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : ios 4.4.0
    Ionic Framework    : ionic-angular 3.6.0

System:

    ios-deploy : 1.9.1 
    ios-sim    : 5.0.13 
    Node       : v7.4.0
    npm        : 5.3.0 
    OS         : macOS Sierra
    Xcode      : Xcode 8.3.3 Build version 8E3004b 

Same reply as to your other post:

Problem solved. I re-installed node,npm and ionic.
Thank you Sujan12

1 Like