Package Details: libelectron 1.0.27-1

Git Clone URL: https://aur.archlinux.org/libelectron.git (read-only, click to copy)
Package Base: libelectron
Description: A collection of npm dependencies for electron packages.
Upstream URL: https://gitlab.com/linuxbombay/libelectron/libelectron
Licenses: GPL
Submitter: gameslayer
Maintainer: gameslayer
Last Packager: gameslayer
Votes: 8
Popularity: 0.48
First Submitted: 2022-11-18 11:55 (UTC)
Last Updated: 2024-09-30 23:55 (UTC)

Latest Comments

« First ‹ Previous 1 .. 6 7 8 9 10 11

SomeOwl commented on 2023-05-14 11:42 (UTC) (edited on 2023-05-14 11:51 (UTC) by SomeOwl)

Yes, that's very odd. I verified that I'm using 8.19.2 (as per pacman) and tested like this: 1. make a temp folder and cd into it 2. npm i jquery

Result: nothing happens

Another attempt: 1. make a temp folder and cd into it 2. npm init (smashing the enter key several times) 3. npm i jquery

Result: installed 1 package (jquery)

I'll look if there's some kind of npm default config that controls what happens here.

gameslayer commented on 2023-05-14 10:48 (UTC)

That is odd because you don't need a package.json file, the npm command to install the dependencies will generate a package.json file and create the node_modules folder where it will install everything to. It sounds like something is wrong with your npm package. I have npm 8.19.2-1 installed

SomeOwl commented on 2023-05-14 10:44 (UTC)

I think we're not the same page on this. Please let me elaborate.

In my local situation, on its own, the "setup" bash script won't work because there is no node_modules folder to copy after running the npm i. This because any npm i command (like in the script) will not produce a node_modules folder, as there is no package.json file. To make it work, in my local setup, I have to navigate to the src/libelectron-x.x.xx-x folder and run npm init (hitting enter repeatedly because the content doesn't matter), which will produce a skeleton package.json file. Then I need to attempt the build again. Only then will the script work as intended.

Bottom line is, for some reason npm appears to behave differently in my setup compared to yours. What version of npm do you use to build the package?

gameslayer commented on 2023-03-20 10:40 (UTC)

The package just installs the npm packages and moves the node_modules folder to /opt/libelectron. it doesn't need a package.json file if your telling it to install packages yourself.

SomeOwl commented on 2023-03-20 10:37 (UTC)

How does this script work without a package.json file? Shouldn't the npm i commands skip creating the node module folder? In my case, I had to create an empty package.json file with npm init, then run makepkg again.

gameslayer commented on 2022-12-12 03:07 (UTC)

Ah I see, alright I have added git to the dependencies

Technetium1 commented on 2022-12-11 19:23 (UTC) (edited on 2022-12-11 19:23 (UTC) by Technetium1)

This does in fact require git in makedepends to build in a clean chroot, otherwise you get this failure in package():

npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path git npm ERR! errno -2 npm ERR! enoent An unknown git error occurred npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

gameslayer commented on 2022-11-19 13:07 (UTC)

This doesn't use or need git as a dependency, it only uses and requires npm

sekret commented on 2022-11-19 11:55 (UTC)

You need to add git to makedepends.