Cordova version error while using ionic to create new app although cordova is latest

后端 未结 3 1681
日久生厌
日久生厌 2021-01-14 08:44

I got the following error while creating a new app using ionic. I am following instructions according to the standard doc (http://ionicframework.com/getting-sta

相关标签:
3条回答
  • 2021-01-14 09:17

    The error-line at the last seems to be a default error message in ionic and working with cordova. The solution is as simple as running the command with sudo.

    0 讨论(0)
  • 2021-01-14 09:26

    Something may have changed regarding the installation of newer Ionic/Cordova versions via Node/NPM, as reiterated in this Cordova bug tracker issue thread.

    As @TechSpellBound suggests, you could prefix all ionic command line calls with 'sudo'. I took some alternative advice from the bug tracker post and simply changed the owner and group of the 'tmp' folder to my own user/group and not 'root:root', as it seemed to be, previously:

    sudo chown -R someuser:somegroup /home/someuser/tmp
    

    My group name was the same as my user name, so, assuming a similar setup on your machine, issue:

    sudo chown -R gsakhardande:gsakhardande /home/gsakhardande/tmp
    

    ;-)

    0 讨论(0)
  • 2021-01-14 09:32

    Running Command With sudo

    sudo ionic start todo blank
    
    0 讨论(0)
提交回复
热议问题