Closed normtown closed 3 years ago
It looks like the most recent downloadable version is 0.5.1. All the more recent versions return a 403.
Specifying npm install node-gtk@0.5.1
appears to fail. Maybe because mkdirp
moved to promises?
#6 24.26 TypeError: invalid options argument
#6 24.26 at optsArg (/node_modules/mkdirp/lib/opts-arg.js:13:11)
#6 24.26 at mkdirp (/node_modules/mkdirp/index.js:11:10)
#6 24.26 at inferOwner.then.owner (/usr/share/npm/node_modules/gentle-fs/lib/mkdir.js:14:5)
#6 24.27 Error: npm.load() required
#6 24.27 at Object.get (/usr/share/npm/lib/npm.js:59:13)
#6 24.27 at process.errorHandler (/usr/share/npm/lib/utils/error-handler.js:205:32)
#6 24.27 at process.emit (events.js:198:13)
#6 24.27 at emitPromiseRejectionWarnings (internal/process/promises.js:140:18)
#6 24.27 at process._tickCallback (internal/proc
[2021-04-30T23:35:22.109Z] [PID 50362] ess/next_tick.js:69:34)
#6 24.27 /usr/share/npm/lib/npm.js:59
#6 24.27 throw new Error('npm.load() required')
#6 24.27 ^
#6 24.27
#6 24.27 Error: npm.load() required
[2021-04-30T23:35:22.109Z] [PID 50362]
#6 24.27 at Object.get (/usr/share/npm/lib/npm.js:59:13)
#6 24.27 at process.errorHandler (/usr/share/npm/lib/utils/error-handler.js:205:32)
#6 24.27 at process.emit (events.js:198:13)
#6 24.27 at process._fatalException (internal/bootstrap/node.js:497:27)
------
Can't reproduce, but you're using an LTS version for which support has ended and for which node-gtk doesn't provide pre-built binaries nor supports. Please upgrade to a supported version, and report back if you're still unable to install.
The bucket is public so there shouldn't be any problem, though I'd expect it to return a 404 in this case.
If your issue persists, don't forget to provide your nodejs & OS versions.
Looks like the bucket permissions are correct. Did you also check the individual objects?
LTS of what? My container is built on the LTS of Ubuntu (focal) and there is no newer LTS of that. Do you mean something else?
Nodejs LTS. You're using version 10.19.0, according to the logs posted up here, that version is unsupported by both nodejs and node-gtk.
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Thanks. It looks like snap or nodesource are the ways to get newer versions now. The Ubuntu deb repo is still on node 10.
I’m not sure this explains the auth issues on the node-gtk objects in S3. I get 403 for > 0.5.1 even if I use a web browser on a Mac laptop.
I also just tried to download https://node-gtk-1.s3.amazonaws.com/node_gtk/v0.8.1/node_gtk-node-v64-linux-x64.tar.gz from Safari on my phone and that also returns a 403.
That file does not exist. You're trying to download a prebuilt binary for nodejs v10, but there is none because it is not supported by node-gtk. Upgrade to a supported nodejs and try again.
Thanks for the explanation. Yeah, it’s weird that’s a 403 rather than a 404.
When doing
npm install node-gtk
, I am getting a 403 when trying to download the binary from S3. Are the permissions set correctly on bucket/object?The installation further fails because of an error in the fallback build: