Closed nottelmo closed 6 years ago
Upon further investigation it is not an issue with electron. This thread indicates that it is instead some issue with environment-modules
for bash in Fedora. One of the last two solutions mentioned should fix this for you.
@StaticRocket Did the last two solutions on that thread but it is still not working
Run this command:
"/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/not-telmo/.atom/.apm/.apmrc" "--userconfig" "/home/not-telmo/.atom/.apmrc" "install" "/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz" "--runtime=electron" "--target=1.6.1" "--arch=x64" "--global-style"
The install was pointed to dead links and invalid fallback version was set. This was the same issue I had on #40.
Thanks for your efforts, but it is still not working. I run it with and without sudo
Below is the resulting log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/share/atom/resources/app/apm/bin/node',
1 verbose cli '/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js',
1 verbose cli '--globalconfig',
1 verbose cli '/home/not-telmo/.atom/.apm/.apmrc',
1 verbose cli '--userconfig',
1 verbose cli '/home/not-telmo/.atom/.apmrc',
1 verbose cli 'install',
1 verbose cli '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz',
1 verbose cli '--runtime=electron',
1 verbose cli '--target=1.6.1',
1 verbose cli '--arch=x64',
1 verbose cli '--global-style' ]
2 info using npm@3.10.10
3 info using node@v6.9.5
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly fetchPackageMetaData /tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz
8 silly fetchOtherPackageData /tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz
9 silly cache add args [ '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz', null ]
10 verbose cache add spec /tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz
11 silly cache add parsed spec Result {
11 silly cache add raw: '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz',
11 silly cache add scope: null,
11 silly cache add escapedName: null,
11 silly cache add name: null,
11 silly cache add rawSpec: '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz',
11 silly cache add spec: '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz',
11 silly cache add type: 'local' }
12 error addLocal Could not install /tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz
13 silly fetchPackageMetaData Error: ENOENT: no such file or directory, open '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz'
13 silly fetchPackageMetaData at Error (native)
13 silly fetchPackageMetaData error for /tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz { Error: ENOENT: no such file or directory, open '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz'
13 silly fetchPackageMetaData at Error (native)
13 silly fetchPackageMetaData errno: -2,
13 silly fetchPackageMetaData code: 'ENOENT',
13 silly fetchPackageMetaData syscall: 'open',
13 silly fetchPackageMetaData path: '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz' }
14 silly rollbackFailedOptional Starting
15 silly rollbackFailedOptional Finishing
16 silly runTopLevelLifecycles Finishing
17 silly install printInstalled
18 verbose stack Error: ENOENT: no such file or directory, open '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz'
18 verbose stack at Error (native)
19 verbose cwd /home/not-telmo
20 error Linux 4.15.9-300.fc27.x86_64
21 error argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/not-telmo/.atom/.apm/.apmrc" "--userconfig" "/home/not-telmo/.atom/.apmrc" "install" "/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz" "--runtime=electron" "--target=1.6.1" "--arch=x64" "--global-style"
22 error node v6.9.5
23 error npm v3.10.10
24 error path /tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz
25 error code ENOENT
26 error errno -2
27 error syscall open
28 error enoent ENOENT: no such file or directory, open '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz'
29 error enoent ENOENT: no such file or directory, open '/tmp/d-118212-4160-izydi7.6uc1o9wwmi/package.tgz'
29 error enoent This is most likely not a problem with npm itself
29 error enoent and is related to npm not being able to find a file.
30 verbose exit [ -2, true ]
Ah, considering the amount of time that has pass between the two commands you need to uninstall whatever was saved by using apm remove arduino-upload
and then run apm install arduino-upload
to get back to where you were.
(Your temp file for the install was removed so you need to make another one using the steps mentioned previously.)
Still nothing,
apm remove arduino-upload
says package does not exist,
apm install arduino-upload
still gets us back to the starting point of this post,
The command you provided still outputs the same log from my previous comment.
As for the file in the tmp/ folder, it was never created in any of the steps.
Have you tried it since #40 was closed?
@StaticRocket Assuming the package found in Atom is the latest one (1.3.3), the same problem still persists.
Just out of curiosity, what version of Atom are you running?
Just updated to the latest version (1.25) and the problem persists.
Is the log output from running apm install arduino-upload
with the either "fix" from that thread I linked the same as the original log, or did we at least get something different?
It seems that is a download failure. My log shows:
node-pre-gyp ERR! Tried to download(500): https://files.sorunome.de/arduino-upload/serialport/4.0.7/serialport-v4.0.7-electron-v2.0-linux-x64.tar.gz
@edward-p That totally seems like a problem, right? Well... miraculously it isn't. At least, not at the moment.
If node-pre-gyp fails it falls back to node-gyp which compiles packages itself. That requires build tools to be present, which should be sstandard in a linux install
@StaticRocket Yes, it is like #40. I think my electron version is too high.
@Sorunome I remember reading in a few logs that the fallback version was never set and is not being passed to npm. Normally this just threw up a few errors and continued the install, but it may be worth checking out.
Running Fedora 27 (Fresh Install)