Compiling error, electronize start "npm WARN tar EINVAL: invalid argument, futime" #608

Closed
opened 2026-01-29 16:44:02 +00:00 by claunia · 0 comments
Owner

Originally created by @LagradOst on GitHub (Nov 23, 2020).

Electron.NET.API v9.31.2
CLI v9.31.2

.Net 5.0 and .Net 3.0 tested
npm@6.14.9

  • Target:
    Windows debug from windows

I tried following https://www.youtube.com/watch?v=nuM6AojRFHk but got this error when testing electron. No problem running it in the browser. After that I tried to clone https://github.com/ElectronNET/electron.net-musicplayer-sample.git and got the same problem. Tried both git bash and cmd admin, and after 5min or so, cmd errors with "code ENOENT"

Steps to Reproduce:

  1. git clone https://github.com/ElectronNET/electron.net-musicplayer-sample.git
  2. electronize start
    fullLog.txt
    $ electronize start
    Start Electron Desktop Application...
    Microsoft Windows [Version 10.0.17763.1518]
    (c) 2018 Microsoft Corporation. Med ensamrätt.
    E:\repos\electron.net-musicplayer-sample>dotnet publish -r win-x64 -c "Debug" --output "E:\repos\electron.net-musicplayer-sample\obj\Host\bin" /p:PublishReadyToRun=true --no-self-contained
    Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET
    Copyright (C) Microsoft Corporation. All rights reserved.
    Determining projects to restore...
    C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\MyElectronMusicPlayer.csproj]
    All projects are up-to-date for restore.
    C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\MyElectronMusicPlayer.csproj]
    MyElectronMusicPlayer -> E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\bin\Debug\netcoreapp3.0\win-x64\MyElectronMusicPlayer.dll
    MyElectronMusicPlayer -> E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\bin\Debug\netcoreapp3.0\win-x64\MyElectronMusicPlayer.Views.dll
    MyElectronMusicPlayer -> E:\repos\electron.net-musicplayer-sample\obj\Host\bin
    E:\repos\electron.net-musicplayer-sample>
    node_modules missing in: E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules
    Start npm install...
    Microsoft Windows [Version 10.0.17763.1518]
    (c) 2018 Microsoft Corporation. Med ensamrätt.
    E:\repos\electron.net-musicplayer-sample\obj\Host>npm install
    npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm WARN tar EINVAL: invalid argument, futime
    npm ERR! code ENOENT
    npm ERR! syscall rename
    npm ERR! path E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules\builder-util-runtime
    npm ERR! dest E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules.builder-util-runtime.DELETE
    npm ERR! errno -4058
    npm ERR! enoent ENOENT: no such file or directory, rename 'E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules\builder-util-runtime' -> 'E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules.builder-util-runtime.DELETE'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent
    npm ERR! A complete log of this run can be found in:
    npm ERR! C:\Users[CURRENT.USER]\AppData\Roaming\npm-cache_logs\2020-11-23T21_29_44_256Z-debug.log
    E:\repos\electron.net-musicplayer-sample\obj\Host>
    ElectronHostHook handling started...
    Invoke electron.cmd - in dir: E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules.bin
    Unhandled exception. System.AggregateException: One or more errors occurred. (Katalognamnet är felaktigt.)
    ---> System.ComponentModel.Win32Exception (267): Katalognamnet är felaktigt.
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at System.Diagnostics.Process.Start()
    at ElectronNET.CLI.ProcessHelper.CmdExecute(String command, String workingDirectoryPath, Boolean output, Boolean waitForExit) in C:_WorkRepos\Electron.NET\ElectronNET.CLI\ProcessHelper.cs:line 81
    at ElectronNET.CLI.Commands.StartElectronCommand.b__15_0() in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\StartElectronCommand.cs:line 147
    at System.Threading.Tasks.Task1.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
    at System.Threading.Tasks.Task`1.get_Result()
    at ElectronNET.CLI.Program.Main(String[] args) in C:_WorkRepos\Electron.NET\ElectronNET.CLI\Program.cs:line 59
Originally created by @LagradOst on GitHub (Nov 23, 2020). <!-- Which version of Electron.NET CLI and API are you using? --> Electron.NET.API v9.31.2 CLI v9.31.2 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> .Net 5.0 and .Net 3.0 tested npm@6.14.9 <!-- What target are you building for? --> * **Target**: Windows debug from windows <!-- Enter your issue details below this comment. --> I tried following https://www.youtube.com/watch?v=nuM6AojRFHk but got this error when testing electron. No problem running it in the browser. After that I tried to clone https://github.com/ElectronNET/electron.net-musicplayer-sample.git and got the same problem. Tried both git bash and cmd admin, and after 5min or so, cmd errors with "code ENOENT" <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Steps to Reproduce: 1. git clone https://github.com/ElectronNET/electron.net-musicplayer-sample.git 2. electronize start [fullLog.txt](https://github.com/ElectronNET/Electron.NET/files/5585895/fullLog.txt) $ electronize start Start Electron Desktop Application... Microsoft Windows [Version 10.0.17763.1518] (c) 2018 Microsoft Corporation. Med ensamrätt. E:\repos\electron.net-musicplayer-sample>dotnet publish -r win-x64 -c "Debug" --output "E:\repos\electron.net-musicplayer-sample\obj\Host\bin" /p:PublishReadyToRun=true --no-self-contained Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET Copyright (C) Microsoft Corporation. All rights reserved. Determining projects to restore... C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\MyElectronMusicPlayer.csproj] All projects are up-to-date for restore. C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(28,5): warning NETSDK1138: The target framework 'netcoreapp3.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy. [E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\MyElectronMusicPlayer.csproj] MyElectronMusicPlayer -> E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\bin\Debug\netcoreapp3.0\win-x64\MyElectronMusicPlayer.dll MyElectronMusicPlayer -> E:\repos\electron.net-musicplayer-sample\MyElectronMusicPlayer\bin\Debug\netcoreapp3.0\win-x64\MyElectronMusicPlayer.Views.dll MyElectronMusicPlayer -> E:\repos\electron.net-musicplayer-sample\obj\Host\bin\ E:\repos\electron.net-musicplayer-sample> node_modules missing in: E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules Start npm install... Microsoft Windows [Version 10.0.17763.1518] (c) 2018 Microsoft Corporation. Med ensamrätt. E:\repos\electron.net-musicplayer-sample\obj\Host>npm install npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information. npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm WARN tar EINVAL: invalid argument, futime npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules\builder-util-runtime npm ERR! dest E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules\.builder-util-runtime.DELETE npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, rename 'E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules\builder-util-runtime' -> 'E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules\.builder-util-runtime.DELETE' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\[CURRENT.USER]\AppData\Roaming\npm-cache\_logs\2020-11-23T21_29_44_256Z-debug.log E:\repos\electron.net-musicplayer-sample\obj\Host> ElectronHostHook handling started... Invoke electron.cmd - in dir: E:\repos\electron.net-musicplayer-sample\obj\Host\node_modules\.bin Unhandled exception. System.AggregateException: One or more errors occurred. (Katalognamnet är felaktigt.) ---> System.ComponentModel.Win32Exception (267): Katalognamnet är felaktigt. at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) at System.Diagnostics.Process.Start() at ElectronNET.CLI.ProcessHelper.CmdExecute(String command, String workingDirectoryPath, Boolean output, Boolean waitForExit) in C:\_WorkRepos\Electron.NET\ElectronNET.CLI\ProcessHelper.cs:line 81 at ElectronNET.CLI.Commands.StartElectronCommand.<ExecuteAsync>b__15_0() in C:\_WorkRepos\Electron.NET\ElectronNET.CLI\Commands\StartElectronCommand.cs:line 147 at System.Threading.Tasks.Task`1.InnerInvoke() at System.Threading.Tasks.Task.<>c.<.cctor>b__274_0(Object obj) at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location where exception was thrown --- at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at ElectronNET.CLI.Program.Main(String[] args) in C:\_WorkRepos\Electron.NET\ElectronNET.CLI\Program.cs:line 59
claunia added the bug label 2026-01-29 16:44:02 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#608