cordova cli installation error

后端 未结 9 777
长情又很酷
长情又很酷 2021-01-20 18:11

I try updating my ionic cordova cli when i started getting issues installing the two package, but now ionic have been successfully installed and i have tried installing the

相关标签:
9条回答
  • 2021-01-20 18:24

    I just want to add an official answer to Swaminathan Vetri suggestion. Here's exactly what I did to resolve:

    sudo npm cache clean make sure to run with sudo

    and then,

    sudo npm install -g cordova again make sure to run with sudo.

    Thanks!

    0 讨论(0)
  • 2021-01-20 18:24

    Here Is a ssl Error this error can be resolved using this piece of code Copy and paste this code to nodejs command promt npm set registry http://registry.npmjs.org/ 100% working Enjoy.

    0 讨论(0)
  • 2021-01-20 18:26

    Thank you all for your answer, i have had the issues resolve from all of your contribution. This are the step i followed.

    1. npm cache clean
    2. Bring back the node version to v0.10.36 as suggested that the latest version of node may not be compatible for the new cli for window users.
    3. Run the node cli or cmd in admin mode
    4. npm install -g cordova

    Thank your all for your time and contribution

    0 讨论(0)
  • 2021-01-20 18:29

    For me, the version of nodejs was wrong.

    I installed the older version of nodejs form here: https://nodejs.org/en/download/package-manager/

    0 讨论(0)
  • 2021-01-20 18:30

    I had exactly the same issue during Cordova installation, but on Ubuntu 14.04.

    sudo npm cache clean
    

    Resolved my problem.

    0 讨论(0)
  • 2021-01-20 18:39

    Hi Try cleaning you node cache by running

    npm cache clean
    

    then delete folder cordova.delete or cordova at the file location

     C:\Users\USER\AppData\Roaming\npm\node_modules
    

    and then search for PowerShell in run and open it.and type

    npm install -g cordova
    

    worked for me. and please try disabling your antivirus as well.

    0 讨论(0)
提交回复
热议问题