如何将 cordova-android 存储库从 svn 导入到cordova-base 项目的平台



我从github下载了一个cordova-android存储库,它是一个git-respository。 然后我把这个存储库上传到 svn,我只修改了这个 svn 存储库package.json文件的一些配置,作为"respository"标签,我修改了它的内部标签"type":"git""type":"svn"。当我在 CLI 中使用顺序platform add http://my/svn/site/cordova-android时,它给我抛出了一些错误。

Error: Failed to fetch platform http://my/svn/site/cordova-android
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: npm: Command failed with exit code 254 Error output:
npm ERR! not a package /var/folders/qs/nvr1v1ts6vjgk9sfxdrn92xm0000gn/T/npm-99652-2758af32/my/svn/site/cordova-android
npm ERR! Darwin 15.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "http:///my/svn/site/cordova-android" "--save"
npm ERR! node v6.10.2
npm ERR! npm  v4.2.0
npm ERR! path /var/folders/qs/nvr1v1ts6vjgk9sfxdrn92xm0000gn/T/npm-99652-2758af32/unpack-3bf64aae/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/var/folders/qs/nvr1v1ts6vjgk9sfxdrn92xm0000gn/T/npm-99652-2758af32/unpack-3bf64aae/package.json'
npm ERR! enoent ENOENT: no such file or directory, open '/var/folders/qs/nvr1v1ts6vjgk9sfxdrn92xm0000gn/T/npm-99652-2758af32/unpack-3bf64aae/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/xb/.npm/_logs/2017-07-27T02_15_59_655Z-debug.log

谁能给我一些建议?提前致谢

转到 C:\Users\mypc.cordova\libpm_cache,找到 cordova-android 文件夹。

无论您在 SVN 中执行什么操作,都要进行更改。

然后运行命令"科尔多瓦平台添加安卓">

最新更新