Zulip Chat Archive
Stream: nightly-testing
Topic: ProofWidgets4
Kim Morrison (Aug 05 2024 at 02:36):
@Wojciech Nawrocki I'm having trouble bumping ProofWidgets to v4.11.0-rc1
(and I think this will block me bumping Mathlib, as I don't dare have inconsistent Batteries imports...)
Could you (or anyone else who know more about npm
!) please take a look at https://github.com/leanprover-community/ProofWidgets4/pull/73?
Yakov Pechersky (Aug 05 2024 at 02:58):
I think this issue is relevant https://github.com/nodejs/node/issues/52682
Yakov Pechersky (Aug 05 2024 at 03:01):
So I think adding a step to the workflow of npm i -g npm
prior to the lake build step should work...?
𝚠𝚘𝚓𝚌𝚒𝚎𝚌𝚑 𝚗𝚊𝚠𝚛𝚘𝚌𝚔𝚒 (Aug 05 2024 at 03:06):
Let's try it! (But how can we run npm i
if npm
isn't working?)
Yakov Pechersky (Aug 05 2024 at 03:08):
npm is working, that's the utility giving the error messages. But the build is looking for npm source js inside the widgets subfolder
Yakov Pechersky (Aug 05 2024 at 03:10):
Which I'm not sure why it'd be looking there to begin with. Perhaps if the global install doesn't fix it, then npm install npm
might. npm install
places the source code in the node_modules folder, which is what the build error is complaining about being missing.
Yakov Pechersky (Aug 05 2024 at 03:13):
I see, I think the error occurs during this line, right? https://github.com/leanprover-community/ProofWidgets4/blob/main/lakefile.lean#L99
𝚠𝚘𝚓𝚌𝚒𝚎𝚌𝚑 𝚗𝚊𝚠𝚛𝚘𝚌𝚔𝚒 (Aug 05 2024 at 03:24):
Attempting to install it globally failed with missing permissions, so I tried your local install suggestion. That seems to have worked. We should remove it when MSYS2 NPM is more recent and no longer has the issue.
𝚠𝚘𝚓𝚌𝚒𝚎𝚌𝚑 𝚗𝚊𝚠𝚛𝚘𝚌𝚔𝚒 (Aug 05 2024 at 03:26):
I was a little worried that this step modifies package-lock.json
which is then no longer considered up-to-date by Lake. Luckily we upload release archives from Ubuntu, and the npm install npm
only runs on Windows. The whole setup is quite brittle.
Yakov Pechersky (Aug 05 2024 at 03:28):
npm install --no-save won't modify the lockfile
Last updated: May 02 2025 at 03:31 UTC