0
I am trying to install the plugin Globalization in my project using Cordova and while trying to add I get the following error:
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
The installation output details the steps:
You have been opted out of Telemetry. To change this, run: Cordova Telemetry on.
No scripts found for hook "before_plugin_add".
No version specified for Cordova-plugin-globalization, retrieving version from config.xml
No version for Cordova-plugin-globalization saved in config.xml
Attempting to use npm info for Cordova-plugin-globalization to Choose a compatible release
Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
Installation log via command line:
0 info it worked if it ends with ok
1 verbose cli [ 'C: Program Files (x86) Microsoft Visual Studio 2017 Community Web External Node.exe',
1 verbose cli 'C: Program Files (x86) Microsoft Visual Studio 2017 Community Web External node_modules npm bin npm-cli.js',
1 verbose cli 'install',
1 verbose cli '-g',
1 verbose cli '[email protected]' ]
2 info using [email protected]
3 info using [email protected]
4 Silly loadCurrentTree Starting
5 Silly install loadCurrentTree
6 Silly install readGlobalPackageData
7 Silly fetchPackageMetaData [email protected]
8 Silly fetchNamedPackageData Cordova
9 Silly mapToRegistry name Cordova
10 Silly mapToRegistry using default Registry
11 Silly mapToRegistry Registry Registry.npmjs.org
12 Silly mapToRegistry Uri Registry.npmjs.org/Cordova
13 verbose request Uri Registry.npmjs.org/Cordova
14 verbose request no auth needed
15 info Attempt Registry request Try #1 at 4:27:15 PM
16 verbose request id 629be16c7e09b198
17 http request GET Registry.npmjs.org/Cordova
18 info Retry will Retry, error on last Attempt: Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
19 info Attempt Registry request Try #2 at 4:27:26 PM
20 http request GET Registry.npmjs.org/Cordova
21 info Retry will Retry, error on last Attempt: Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
22 info Attempt Registry request Try #3 at 4:28:27 PM
23 http request GET Registry.npmjs.org/Cordova
24 Silly fetchPackageMetaData Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
24 Silly fetchPackageMetaData at Clientrequest.onerror (C: Program Files (x86) Microsoft Visual Studio 2017 Community Web External node_modules request node_modules Tunnel-index.js:176:17)
24 Silly fetchPackageMetaData at Clientrequest. g (Events.js:260:16)
24 Silly fetchPackageMetaData at emitOne (Events.js:77:13)
24 Silly fetchPackageMetaData at Clientrequest.Emit (Vents.js:169:7)
24 Silly fetchPackageMetaData at Socket.socketErrorListener (_http_client.js:262:9)
24 Silly fetchPackageMetaData at emitOne (Events.js:77:13)
24 Silly fetchPackageMetaData at Socket.Emit (Events.js:169:7)
24 Silly fetchPackageMetaData at emitErrorNT (net.js:1255:8)
24 Silly fetchPackageMetaData at nextTickCallbackWith2Args (Node.js:474:9)
24 Silly fetchPackageMetaData at process. _tickCallback (Node.js:388:17)
24 Silly fetchPackageMetaData error for [email protected] { [Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888] code: 'ECONNRESET' }
25 Silly rollbackFailedOptional Starting
26 Silly rollbackFailedOptional Finishing
27 Silly runTopLevelLifecycles Starting
28 Silly runTopLevelLifecycles Finishing
29 Silly install printInstalled
30 verbose stack Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
30 verbose stack at Clientrequest.onerror (C: Program Files (x86) Microsoft Visual Studio 2017 Community Web External node_modules request node_modules Tunnel-agent index.js:176:17)
30 verbose stack at Clientrequest. g (Events.js:260:16)
30 verbose stack at emitOne (Vents.js:77:13)
30 verbose stack at Clientrequest.Emit (Vents.js:169:7)
30 verbose stack at Socket.socketErrorListener (_http_client.js:262:9)
30 verbose stack at emitOne (Vents.js:77:13)
30 verbose stack at Socket.Emit (Vents.js:169:7)
30 verbose stack at emitErrorNT (net.js:1255:8)
30 verbose stack at nextTickCallbackWith2Args (Node.js:474:9)
30 verbose stack at process. _tickCallback (Node.js:388:17)
31 verbose cwd C: Projects Knockout Knockout
32 error Windows_nt 6.1.7601
33 error argv "C: Program Files (x86) Microsoft Visual Studio 2017 Community Web External Node.exe" "C: Program Files (x86) Microsoft Visual Studio 2017 Community Web External node_modules npm bin npm-cli.js" "install" "-g" "[email protected]"
34 error Node v5.4.1
35 error npm v3.3.4
36 error code ECONNRESET
37 error network tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:8888
37 error network This is Most likely not a problem with npm itself
37 error network and is Related to network Connectivity.
37 error network In Most cases you are Behind a proxy or have bad network Settings.
37 error network
37 error network If you are Behind a proxy, Please make sure that the
37 error network 'proxy' config is set properly. See: 'npm help config'
38 verbose Exit [ 1, true ]
Which command you are using to try to install the plugin?
– Bruno Peres
Maybe you should try installing from the command line with
cordova plugin add cordova-plugin-globalization
.– Bruno Peres
Sorry, it’s just that I don’t use Visual Studio. I usually manage the Cordova project on which I work through the Linux terminal.
– Bruno Peres
I figured out how you do the installation by command line and you’re making the same mistake. It may seem that it is a proxy connection error, but other plugins were installed last week and had no problems. See the detailed log in the description of the error I edited.
– Jáder Carvalho de Medeiros