简体   繁体   中英

cordova platform add error

I installed cordova but while adding platform it get's this error

Error: Failed to fetch platform cordova-android@~6.2.2
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
'C:\Windows\system32\npm' is not recognized as an internal or external command,
operable program or batch file

But when I run npm -v it returns NPM version so what's the problem? I added everything in Environment variables.

我只是解决了问题,只需在安装android sdk cordova platform add android --nofetch后输入以下命令,然后cordova platform add android --nofetch

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM