fix_node_error.py 1021 B

1234567891011121314151617181920
  1. from evaluator import *
  2. DESCRIPTION = "Test if the model can identify a node error message"
  3. TAGS = ['explain']
  4. question = """
  5. How do I fix this
  6. nicholas@npc site % http-server
  7. dyld[63275]: Library not loaded: /opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib
  8. Referenced from: <758FD1B7-1836-321E-A1D9-E47EC3C39702> /opt/homebrew/Cellar/node/21.5.0/bin/node
  9. Reason: tried: '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/opt/icu4c/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file), '/opt/homebrew/Cellar/icu4c/74.2/lib/libicui18n.73.dylib' (no such file)
  10. """
  11. TestFixNode = question >> LLMRun() >> SubstringEvaluator("brew reinstall node")
  12. if __name__ == "__main__":
  13. print(run_test(TestFixNode))