npmConfigHook: suggest cache v2 when npm install fails

This commit is contained in:
Winter
2025-12-31 00:37:52 -05:00
parent f297c444c2
commit d028ea9cd8
@@ -127,9 +127,10 @@ npmConfigHook() {
echo "ERROR: npm failed to install dependencies"
echo
echo "Here are a few things you can try, depending on the error:"
echo '1. Set `makeCacheWritable = true`'
echo '1. Set `npmDepsCacheVersion = 2` (and update `npmDepsHash`)'
echo '2. Set `makeCacheWritable = true`'
echo " Note that this won't help if npm is complaining about not being able to write to the logs directory -- look above that for the actual error."
echo '2. Set `npmFlags = [ "--legacy-peer-deps" ]`'
echo '3. Set `npmFlags = [ "--legacy-peer-deps" ]`'
echo
exit 1