हमारे पास एक चलकर स्वचालित DART निर्माण हैस्क्रिप्ट जो प्रोजेक्ट फ़ोल्डर (जहां .yaml फ़ाइल स्थित है) पर नेविगेट करता है और "पब मिल" और "पब बिल्ड" चलाता है। यह थोड़ी देर के लिए काम कर रहा था, लेकिन अब हम इसे (दोनों मामलों में) प्राप्त कर रहे हैं:
Unhandled exception:
Illegal argument(s): join(null, "Pub", "Cache"): part 0 was null, but part 1 was not.
#0 _validateArgList (package:path/src/context.dart:497)
#1 Context.join (package:path/src/context.dart:187)
#2 join (package:path/path.dart:235)
#3 main (file:///e:/b/build/slave/dart-editor-win-stable/build/dart/sdk/lib/_internal/pub/bin/pub.dart:69)
#4 _startIsolate.isolateStartHandler (dart:isolate-patch/isolate_patch.dart:214)
#5 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:124)
इसका क्या कारण रह सकता है? हम एसडीके 1.4.0 का उपयोग करते हैं।
धन्यवाद,
यूरी।
उत्तर:
जवाब के लिए 0 № 1आपके पास Eviroment चर "APPDATA" होना चाहिए AppDataRoaming
और भी सेट करें PUB_CACHE
एक फ़ोल्डर में जहां आप अच्छी पब कैश चाहते हैं