我已经成功安装了Cordova(在
Windows下进行全新安装),我可以将一个小应用程序部署到
Android,但无法在我公司的代理后面添加任何插件.我已经尝试过设置我能想到的每个可能的npm和git变量:
npm config set proxy url:port npm config set http-proxy url:port npm config set https-proxy url:port
(用实际代理替换了url:port)和
git config --system --add http.proxy url:port git config --global --add http.proxy url:port
但无济于事.
每次我运行的东西都很简单
cordova plugin add org.apache.cordova.splashscreen
我得到以下内容:
Fetching plugin "org.apache.cordova.splashscreen" via plugin registry Error: Fetching plugin Failed: Error: read ECONNRESET at C:\Users\x\AppData\Roaming\npm\node_modules\cordova\src\plugin.js:105:41 at _rejected (C:\Users\x\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:24) at C:\Users\x\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:834:30 at Promise.when (C:\Users\x\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1079:31) at Promise.promise.promiseDispatch (C:\Users\x\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:752:41) at C:\Users\x\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:574:44 at flush (C:\Users\x\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:108:17) at process._tickCallback (node.js:415:13)
任何帮助将非常感激!