I’m trying to go through a course that explains how to build an API.
I’m running Fedora Silverblue as the main OS on a Thinkpad and an Ubuntu Gnome Boxes VM.
I’m getting an error and I believe that this is because the script executes everything from “/usr/share/npm/…” and with Silverblue everything is seemingly rooted (if that’s what it’s called) in the “var” directory and containerized thereon after.
I’m not comfortable enough with containers to use Podman or Skopeo or Buildah etc. I’ve noticed that the Ubuntu VM won’t work:
a.) When I download something on it and try to run it after. I need to restart the whole computer since Fedora Silverblue is the main OS;
b.) When downloading things like VS Codium - where I would need to add libraries.
VS Codium, for the record, needs an update but seemingly, the scripts that come with this software and what’s in Silverblue don’t line up since everything is based out fo “var” in Silverblue.
I’m not quite sure how to resolve these issue. Any help?
Few bits of the error:
/.npm/orders_project_starting 10 silly lifecycle email@example.com~start: Args: [ '-c', 'node server.js' ] 11 silly lifecycle firstname.lastname@example.org~start: Returned: code: 1 signal: null 12 info lifecycle email@example.com~start: Failed to exec start script 13 verbose stack Error: firstname.lastname@example.org start: `node server.js` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess.<anonymous> (/usr/share/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid email@example.com 16 verbose Linux 5.11.0-41-generic 17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 18 verbose node v10.19.0 19 verbose npm v6.14.4 20 error code ELIFECYCLE 21 error errno 1 22 error firstname.lastname@example.org start: `node server.js` 22 error Exit status 1 23 error Failed at the email@example.com start script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]