Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
143 views
in Technique[技术] by (71.8m points)

android - how do i solve this problem on installing Cordova by cmd

I am a new user. i am trying to export mu game in construdt2 to apk by Cordova cli. when I want install Cordova in cmd, I see this: enter image description here

please help me soon. I tried more than 10 times to install it but I couldn't. at last time I saw theses errors. best regards ehsan

question from:https://stackoverflow.com/questions/65850807/how-do-i-solve-this-problem-on-installing-cordova-by-cmd

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Looks like you already have a version installed and npm can't overwrite the cordova dir. Try to uninstall before, then reboot (just in case), then install again

 npm uninstall cordova -g
 reboot
 npm install cordova -g

Also make sure you run your prompt as admin


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...