0

尝试运行我的 react-native 应用程序时出现以下错误

控制台图像(下面粘贴相同的内容)

C:\My Projects\SmartBill\SmartBillApp>npx react-native run-windows --logging
 i Verbose: ON
- Locating NuGet executableINFO: Could not find files for the given pattern(s).
 Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:90
+ ... lyContinue; Invoke-WebRequest https://dist.nuget.org/win-x86-commandl ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
   eption

+ FullyQualifiedErrorId : 

WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

× Locating NuGet executable
error Cannot read property 'toString' of undefined. Run CLI with --verbose flag for more details.
TypeError: Cannot read property 'toString' of undefined
    at Object.runWindows [as func] (C:\My Projects\SmartBill\SmartBillApp\node_modules\react-native-windows\local-cli\runWindows\runWindows.js:67:61)
    at process._tickCallback (internal/process/next_tick.js:68:7)
4

0 回答 0