pulsar-edit / ppm

Pulsar Package Manager
MIT License
35 stars 14 forks source link

Cannot install extensions in Cuba #130

Open paolobenve opened 7 months ago

paolobenve commented 7 months ago

Thanks in advance for your bug report!

Where is the URL that this occurs?

I don't know. I'm trying to install pulsar packages with its install procedure

What's your issue?

Trying to install an extension, I got this result:

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli   '/opt/Pulsar/resources/app/ppm/bin/node',
1 verbose cli   '/opt/Pulsar/resources/app/ppm/node_modules/npm/bin/npm-cli.js',
1 verbose cli   '--globalconfig',
1 verbose cli   '/home/paolo/.pulsar/.apm/.apmrc',
1 verbose cli   '--userconfig',
1 verbose cli   '/home/paolo/.pulsar/.apmrc',
1 verbose cli   'install',
1 verbose cli   'https://api.pulsar-edit.dev/api/packages/symbols-tree-view/versions/0.14.0/tarball',
1 verbose cli   '--target=12.2.3',
1 verbose cli   '--disturl=https://artifacts.electronjs.org/headers/dist',
1 verbose cli   '--arch=x64',
1 verbose cli   '--force-process-config',
1 verbose cli   '--global-style'
1 verbose cli ]
2 info using npm@6.14.19-pulsar1-1
3 info using node@v16.0.0
4 verbose npm-session e07fbfd776ab1f49
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://codeload.github.com/xndcn/symbols-tree-view/legacy.tar.gz/refs/tags/v0.14.0 2232ms (from cache)
8 silly pacote remote manifest for undefined@https://api.pulsar-edit.dev/api/packages/symbols-tree-view/versions/0.14.0/tarball fetched in 2243ms
9 timing stage:loadCurrentTree Completed in 2258ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule symbols-tree-view@0.14.0 checking installable status
17 silly fetchPackageMetaData error for event-kit@latest request to https://registry.npmjs.org/event-kit failed, reason: read ECONNRESET
18 silly fetchPackageMetaData error for atom-space-pen-views@^2.0.0 request to https://registry.npmjs.org/atom-space-pen-views failed, reason: read ECONNRESET
19 silly fetchPackageMetaData error for q@~1.0.1 request to https://registry.npmjs.org/q failed, reason: read ECONNRESET
20 timing stage:rollbackFailedOptional Completed in 1ms
21 timing stage:runTopLevelLifecycles Completed in 73784ms
22 silly saveTree apm-install-dir-2024326-164637-1naek43.ge59
22 silly saveTree └── symbols-tree-view@0.14.0
23 verbose type system
24 verbose stack FetchError: request to https://registry.npmjs.org/event-kit failed, reason: read ECONNRESET
24 verbose stack     at ClientRequest.<anonymous> (/opt/Pulsar/resources/app/ppm/node_modules/npm/node_modules/node-fetch-npm/src/index.js:68:14)
24 verbose stack     at ClientRequest.emit (node:events:365:28)
24 verbose stack     at TLSSocket.socketErrorListener (node:_http_client:447:9)
24 verbose stack     at TLSSocket.emit (node:events:365:28)
24 verbose stack     at emitErrorNT (node:internal/streams/destroy:193:8)
24 verbose stack     at emitErrorCloseNT (node:internal/streams/destroy:158:3)
24 verbose stack     at processTicksAndRejections (node:internal/process/task_queues:83:21)
25 verbose cwd /tmp/apm-install-dir-2024326-164637-1naek43.ge59
26 verbose Linux 6.8.0-31-generic
27 verbose argv "/opt/Pulsar/resources/app/ppm/bin/node" "/opt/Pulsar/resources/app/ppm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/paolo/.pulsar/.apm/.apmrc" "--userconfig" "/home/paolo/.pulsar/.apmrc" "install" "https://api.pulsar-edit.dev/api/packages/symbols-tree-view/versions/0.14.0/tarball" "--target=12.2.3" "--disturl=https://artifacts.electronjs.org/headers/dist" "--arch=x64" "--force-process-config" "--global-style"
28 verbose node v16.0.0
29 verbose npm  v6.14.19-pulsar1-1
30 error code ECONNRESET
31 error errno ECONNRESET
32 error network request to https://registry.npmjs.org/event-kit failed, reason: read ECONNRESET
33 error network This is a problem related to network connectivity.
33 error network In most cases you are behind a proxy or have bad network settings.
33 error network
33 error network If you are behind a proxy, please make sure that the
33 error network 'proxy' config is set properly.  See: 'npm help config'
34 verbose exit [ 1, true ]

Pulsar 1.111.0

Which OS/Browser/Version does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

xubuntu 24.04; same behaviour in 22.04

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

In Pulsar:

Install doesn't happen, and after about a minute I get the error notification

Additional Information:

I suspect that it's because I'm in Cuba, and many web sites doesn't permit connection from this country.

Unfortunatly I'm not able to run pulsar behind a vpn.

confused-Techie commented 7 months ago

I've already addressed this issue and the solution over on your original issue.