Nix NodeJS | 204 Members | |
| 59 Servers |
| Sender | Message | Time |
|---|---|---|
| 12 Jan 2024 | ||
| i first tried https://github.com/jeslie0/npm-lockfile-fix, that didn't really work, so i deleted node_modules and package-lock.json and ran npm install | 12:10:23 | |
In reply to @marie:marie.colognehmmmm alright i'll pull my laptop out in a minute and look closer | 12:21:02 | |
In reply to @marie:marie.cologneit's still missing resolved/integrity fields for which here: https://github.com/NyCodeGHG/appium/blob/npm/package-lock.json#L22582 (and a few packages around it as well)if i regenerate the lockfile with npm 10.2.4 locally then it's all fine again. what npm version and exact npm command were you using to regenerate the lockfile? | 12:32:22 | |
(you also don't seem to need --ignore-scripts to get it to build fine, either. i confirmed i could run the appium workspace package's index.js as well after building) | 12:36:47 | |
In reply to @lily:lily.flowersoh, thats weird i'll tell you the versions in a moment | 12:37:18 | |
(it looks like specifying npmWorkspace = "packages/appium" doesn't work as intended because they specify their build scripts at the top-level because they use lerna and so trying to build it as a workspace with npm seems to do Bad Things. but you should be able to manually add the wrapping in postInstall i guess) | 12:40:45 | |
* (it looks like specifying npmWorkspace = "packages/appium" doesn't work as intended because they specify their build scripts at the top-level because they use lerna and so trying to build it as a workspace with npm seems to do Bad Things (or rather just not do the build step). but you should be able to manually add the wrapping in postInstall i guess) | 12:41:02 | |
| i used npm 9.8.1 | 12:42:57 | |
| hmm, let me retry with that one and see if i can replicate your lockfile | 12:44:34 | |
| what was the exact npm command you were using? | 12:45:24 | |
| just npm install iirc | 12:45:39 | |
i just retried with npm install --package-lock-only --ignore-scripts and the entry without resolved/integrity is also there | 12:47:51 | |
| okay i've got a few months old nixpkgs revision so i can try npm 9.8.1, but i still can't replicate what you're getting. idk if you need to clear both npm cache and node_modules (instead of just node_modules) or what :/ | 13:01:39 | |
| fwiw btw, here's a derivation i'm using that makes a seemingly-usable
| 13:02:48 | |
In reply to @lily:lily.flowersyeah even deleting my ~/.npm and node_modules and package-lock.json locally and doing npm install --package-lock-only --ignore-scripts with 9.8.1 still gets a working lockfile for me... | 13:05:45 | |
| weird, i'll try this on another machine | 13:06:02 | |