2017-09-02 162 views
0

我安装科尔多瓦,但同时增加了平台得到它的这个错误科尔多瓦平台添加错误

Error: Failed to fetch platform [email protected]~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 

但是当我运行npm -v它返回NPM版本有啥问题?我在环境变量中添加了一切。

+1

'C:\ WINDOWS \ SYSTEM32 \ npm'?你运行的是哪个文件夹?你在Admin cmd中运行吗? E:驱动器中的项目文件夹中的 –

+0

,并在管理员cmd中为yes。 – ssj

+0

尝试将您的项目移动到主文件夹,并尝试使用非admin cmd –

回答

0

我只是解决安装Android SDK中后,问题只是键入此命令 cordova platform add android --nofetch