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

后端 未结 3 1683
日久生厌
日久生厌 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: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
    

    ;-)

提交回复
热议问题