Problems installing Appbluide CLI MAC -- HELP

2 posts, 1 answers
  1. Pablo
    Pablo avatar
    31 posts
    Member since:
    Feb 2015

    Posted 04 Apr 2015 Link to this post

    Hi, i really need your help. I really need to start debuggin the IOS app on MAC

     

     

    I am trying to install in two diferente machines with the same problem.
    I already installed node-v0.12.2.pkg.

    Rebooted and then used: sudo npm install appbuilder -g.

     It shows:

    npm WARN deprecated byline@4.1.1: critical bug fixed in v4.2.0

    npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
    npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
     
    > fibers@1.0.5 install /usr/local/lib/node_modules/appbuilder/node_modules/fibers
    > node ./build.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
     
    > taskgroup@3.3.9 preinstall /usr/local/lib/node_modules/appbuilder/node_modules/watchr/node_modules/taskgroup
    > node ./cyclic.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
     
    > typechecker@2.0.8 preinstall /usr/local/lib/node_modules/appbuilder/node_modules/watchr/node_modules/typechecker
    > node ./cyclic.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
     
    > safefs@3.1.3 preinstall /usr/local/lib/node_modules/appbuilder/node_modules/watchr/node_modules/safefs
    > node ./cyclic.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
    npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
     
    > ref@0.3.5 install /usr/local/lib/node_modules/appbuilder/node_modules/ref
    > node ./build.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
     
    > ambi@2.2.0 preinstall /usr/local/lib/node_modules/appbuilder/node_modules/watchr/node_modules/bal-util/node_modules/ambi
    > node ./cyclic.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
     
    > taskgroup@4.3.0 preinstall /usr/local/lib/node_modules/appbuilder/node_modules/watchr/node_modules/bal-util/node_modules/taskgroup
    > node ./cyclic.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
    npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
    npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.4"})
    npm WARN excluding symbolic link docs/assets/ir_black.css -> ../../node_modules/highlight.js/src/styles/ir_black.css
    npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Resources -> Versions/Current/Resources
    npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Test Framework -> Versions/Current/Test Framework
    npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Versions/Current -> A
    npm WARN excluding symbolic link docs/assets/ir_black.css -> ../../node_modules/highlight.js/src/styles/ir_black.css
    npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Resources -> Versions/Current/Resources
    npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Test Framework -> Versions/Current/Test Framework
    npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Versions/Current -> A
     
    > ffi@1.2.7 install /usr/local/lib/node_modules/appbuilder/node_modules/ffi
    > node ./build.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
    npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
    npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
    npm ERR! Darwin 14.1.0
    npm ERR! argv "node" "/usr/local/bin/npm" "install" "appbuilder" "-g"
    npm ERR! node v0.12.2
    npm ERR! npm  v2.7.4
    npm ERR! code ELIFECYCLE


    npm ERR! fibers@1.0.5 install: `node ./build.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the fibers@1.0.5 install script 'node ./build.js'.
    npm ERR! This is most likely a problem with the fibers package,
    npm ERR! not with npm itself.
    npm ERR! Tell the author that this fails on your system:
    npm ERR!     node ./build.js
    npm ERR! You can get their info via:
    npm ERR!     npm owner ls fibers
    npm ERR! There is likely additional logging output above.


    > appbuilder@2.8.3-331 preuninstall /usr/local/lib/node_modules/appbuilder
    > node preuninstall.js


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
    node.js:720
        var cwd = process.cwd();
                          ^
    Error: EACCES, permission denied
        at Error (native)
        at Function.startup.resolveArgv0 (node.js:720:23)
        at startup (node.js:63:13)
        at node.js:814:3
    npm WARN continuing anyway appbuilder@2.8.3-331 preuninstall: `node preuninstall.js`
    npm WARN continuing anyway Exit status 1


    npm ERR! Please include the following file with any support request:
    npm ERR!     /Users/pablop/npm-debug.log

     

     

     

  2. Answer
    Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 06 Apr 2015 Link to this post

    Hello Pablo,

    Thank you for sending your log. From the messages it looks like node is unable to get current working directory, which is really strange. I've tried to find similar issues and I've found one solution that might work:
    sudo npm install -g appbuilder --unsafe-perm

    It looks like there are some issue with Nodejs on OSX when Node is installed with sudo. If the above does not help, can you try executing:
    $ cd /usr/local/lib/node_modules/appbuilder/node_modules/fibers
    $ sudo node ./build.js

    And see if it works.

    I'm looking forward to hearing from you.

    Regards,
    Rosen Vladimirov
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top