We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a660d95 + 3013867 commit 12d4e48Copy full SHA for 12d4e48
pkgs/development/tools/pnpm/fetch-deps/pnpm-config-hook.sh
@@ -44,11 +44,23 @@ pnpmConfigHook() {
44
45
runHook prePnpmInstall
46
47
- pnpm install \
+ if ! pnpm install \
48
--offline \
49
--ignore-scripts \
50
"${pnpmInstallFlags[@]}" \
51
--frozen-lockfile
52
+ then
53
+ echo
54
+ echo "ERROR: pnpm failed to install dependencies"
55
56
+ echo "If you see ERR_PNPM_NO_OFFLINE_TARBALL above this, follow these to fix the issue:"
57
+ echo '1. Set pnpmDeps.hash to "" (empty string)'
58
+ echo "2. Build the derivation and wait for it to fail with a hash mismatch"
59
+ echo "3. Copy the 'got: sha256-' value back into the pnpmDeps.hash field"
60
61
+
62
+ exit 1
63
+ fi
64
65
66
echo "Patching scripts"
0 commit comments