Abp CLI error on Mac OS
I have installed Abp CLI 0.18. I'm trying to create a new project by command: abp new Acme.Product -t mvc
and I get this error: 13:26:59 INF] ABP CLI (https://abp.io) [13:27:00 INF] Version 0.18.0 (Stable channel) [13:27:10 INF] Creating a new project... [13:27:10 INF] Project name: Acme.Product [13:27:11 INF] Using cached template: mvc, version: 0.18.0 [13:27:13 INF] Check the documentation of this template: https://docs.abp.io/en/abp/latest/Startup-Templates/Mvc [13:27:13 ERR] Path cannot be the empty string or all whitespace. Parameter name: path System.ArgumentException: Path cannot be the empty string or all whitespace. Parameter name: path at System.IO.Directory.CreateDirectory(String path) at Ionic.Zip.ZipEntry.InternalExtract(String baseDir, Stream outstream, String password) at Ionic.Zip.ZipFile._InternalExtractAll(String path, Boolean overrideExtractExistingProperty) at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs) in D:\Github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\Commands\NewCommand.cs:line 66 at Volo.Abp.Cli.CliService.RunAsync(String[] args) in D:\Github\abp\framework\src\Volo.Abp.Cli.Core\Volo\Abp\Cli\CliService.cs:line 56
I tried different variants with output path but i got the same error.
Try using the -o parameter to specify the output directory first.
I tried this but still the same error: abp new Acme.Product -o Product
I don't know much about macos. Is Product a valid path? Under windows may be c:\myproduct
When I use full path: /Volumes/SD/Workspace/originsoftware/Product/
like this: abp new Acme.Product -o /Volumes/SD/Workspace/originsoftware/Product/
then I got another error: [13:58:05 INF] ABP CLI (https://abp.io) [13:58:06 INF] Version 0.18.0-dev (Development channel) [13:58:06 INF] Installing yarn... (libuv) kqueue(): Too many open files in system tty.js:83 throw new ERR_TTY_INIT_FAILED(ctx); ^
SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned ENFILE (file table overflow)
at new WriteStream (tty.js:83:11)
at createWritableStdioStream (internal/process/stdio.js:145:16)
at process.getStdout [as stdout] (internal/process/stdio.js:14:14)
at module.exports (/usr/local/lib/node_modules/npm/node_modules/set-blocking/index.js:2:12)
at Object.
SystemError [ERR_TTY_INIT_FAILED]: TTY initialization failed: uv_tty_init returned ENFILE (file table overflow)
at new WriteStream (tty.js:83:11)
at createWritableStdioStream (internal/process/stdio.js:145:16)
at process.getStdout [as stdout] (internal/process/stdio.js:14:14)
at module.exports (/usr/local/lib/node_modules/npm/node_modules/set-blocking/index.js:2:12)
at Object.1.get_Result()
at System.Net.Http.HttpConnectionPool.CreateConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Threading.Tasks.ValueTask1.get_Result()
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync(ValueTask1 creationTask)
at System.Threading.Tasks.ValueTask1.get_Result()
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
at Volo.Abp.Cli.ProjectBuilding.AbpIoTemplateStore.GetLatestTemplateVersionAsync(String name)
at Volo.Abp.Cli.ProjectBuilding.AbpIoTemplateStore.GetAsync(String name, DatabaseProvider databaseProvider, String projectName, String version)
at Volo.Abp.Cli.ProjectBuilding.ProjectBuilder.BuildAsync(ProjectBuildArgs args)
at Volo.Abp.Cli.Commands.NewCommand.ExecuteAsync(CommandLineArgs commandLineArgs)
at Volo.Abp.Cli.CliService.RunAsync(String[] args)
On Windows everything works great.
We will try on the mac, thanks for feedback.
I also encountered the same problem.
We will change Ionic in the next release: https://github.com/abpframework/abp/issues/1114
After this change, you can reopen this issue if you have still problems. Now, closing this one.
Hey @hikalkan now the project is created correctly, but there is another problem. In the csproj files, the references look like this:
<ItemGroup>
<PackageReference Include="..\..\..\..\framework\src\Volo.Abp.Ddd.Application\Volo.Abp.Ddd.Application" Version="0.18.1" />
</ItemGroup>
and dotnet restore can not find packages on nuget. Should the references look like this?:
<ItemGroup>
<PackageReference Include="Volo.Abp.Ddd.Application" Version="0.18.1" />
</ItemGroup>
see:https://github.com/abpframework/abp/issues/1389