IOError: could not spawn node.exe and vl2vg.js

Hello,

I am trying to save a VegaLite plot as a SVG format. However, I get the following error:

IOError: could not spawn setenv(`'C:\Users\u0152683\.julia\artifacts\0bd56198ac47b98572257a7725d9425f5a1ba1a9\node.exe' 'C:\Users\u0152683\.julia\artifacts\0f93e1e5a618f2b84d0087e031ea67aea480c280\vl2vg.js'`; dir="C:\\Users\\u0152683\\.julia\\artifacts\\0f93e1e5a618f2b84d0087e031ea67aea480c280"): unknown error (UNKNOWN)

I checked and node.exe and vl2vg.js are present in the paths mentioned by the error. Also, the only format which does not give any issue (i.e. save function works fine) is html. All others (PNG, SVG etc) result in this error.

Julia v1.6.6
FileIO v1.16.0
VegaLite v2.6.0

Example:

using  VegaLite 
using DataFrames
df = DataFrame(power = [11,20,33], time = [1,2,3])
p = df |> @vlplot(:line,  y = :power, x= :time)
save("plot.svg",p)

Error encountered while save File{DataFormat{:SVG}, String}("plot.svg").

Fatal error:
ERROR: IOError: could not spawn setenv(`'C:\Users\u0152683\.julia\artifacts\0bd56198ac47b98572257a7725d9425f5a1ba1a9\node.exe' 'C:\Users\u0152683\.julia\artifacts\0f93e1e5a618f2b84d0087e031ea67aea480c280\vl2vg.js'`; dir="C:\\Users\\u0152683\\.julia\\artifacts\\0f93e1e5a618f2b84d0087e031ea67aea480c280"): unknown error (UNKNOWN)
Stacktrace:
  [1] _spawn_primitive(file::String, cmd::Cmd, stdio::Vector{Any})   
    @ Base .\process.jl:99
  [2] _spawn(cmd::Cmd, stdios::Vector{Any}, chain::Base.ProcessChain)
    @ Base .\process.jl:181
  [3] _spawn(cmds::Base.OrCmds, stdios::Vector{Any}, chain::Base.ProcessChain)
    @ Base .\process.jl:149
  [4] #639
    @ .\process.jl:120 [inlined]
  [5] setup_stdios(f::Base.var"#639#640"{Base.OrCmds}, stdios::Vector{Any})
    @ Base .\process.jl:196
  [6] _spawn
    @ .\process.jl:119 [inlined]
  [7] open(cmds::Base.OrCmds, stdio::Base.DevNull; write::Bool, read::Bool)
    @ Base .\process.jl:365
  [8] open(cmds::Base.OrCmds, mode::String, stdio::Base.DevNull)
    @ Base .\process.jl:339
  [9] open
    @ .\process.jl:338 [inlined]
 [10] convert_vl_to_svg(v::VegaLite.VLSpec)
    @ VegaLite C:\Users\u0152683\.julia\packages\VegaLite\F2JoW\src\rendering\show.jl:37
 [11] show(io::IOContext{IOStream}, m::MIME{Symbol("image/svg+xml")}, v::VegaLite.VLSpec)
    @ VegaLite C:\Users\u0152683\.julia\packages\VegaLite\F2JoW\src\rendering\show.jl:63
 [12] show(io::IOContext{IOStream}, m::String, x::VegaLite.VLSpec)
    @ Base.Multimedia .\multimedia.jl:111
 [13] #3
    @ C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\mimesave.jl:18 [inlined]
 [14] open(::FileIO.MimeWriter.var"#3#4"{VegaLite.VLSpec}, ::String, ::Vararg{String, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base .\io.jl:330
 [15] open
    @ .\io.jl:328 [inlined]
 [16] save(file::File{DataFormat{:SVG}, String}, data::VegaLite.VLSpec)
    @ FileIO.MimeWriter C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\mimesave.jl:17
 [17] #invokelatest#2
    @ .\essentials.jl:708 [inlined]
 [18] invokelatest
    @ .\essentials.jl:706 [inlined]
 [19] action(call::Symbol, libraries::Vector{Union{Base.PkgId, Module}}, file::FileIO.Formatted, args::VegaLite.VLSpec; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:219
 [20] action
    @ C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:197 [inlined]
 [21] action(call::Symbol, libraries::Vector{Union{Base.PkgId, Module}}, sym::Symbol, file::String, args::VegaLite.VLSpec; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:185
 [22] action
    @ C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:185 [inlined]
 [23] save(file::String, args::VegaLite.VLSpec; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:129
 [24] save(file::String, args::VegaLite.VLSpec)
    @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:126
 [25] top-level scope
    @ c:\Users\u0152683\Desktop\Simulations\Plots\plots.jl:14
Stacktrace:
 [1] handle_error(e::Base.IOError, q::Module, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})
   @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\error_handling.jl:61
 [2] handle_exceptions(exceptions::Vector{Tuple{Any, Union{Base.PkgId, Module}, Vector{T} where T}}, action::String)
   @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\error_handling.jl:56
 [3] action(call::Symbol, libraries::Vector{Union{Base.PkgId, Module}}, file::FileIO.Formatted, args::VegaLite.VLSpec; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:228
 [4] action
   @ C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:197 [inlined]
 [5] action(call::Symbol, libraries::Vector{Union{Base.PkgId, Module}}, sym::Symbol, file::String, args::VegaLite.VLSpec; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:185
 [6] action
   @ C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:185 [inlined]
 [7] save(file::String, args::VegaLite.VLSpec; options::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:129
 [8] save(file::String, args::VegaLite.VLSpec)
   @ FileIO C:\Users\u0152683\.julia\packages\FileIO\aP78L\src\loadsave.jl:126
 [9] top-level scope
   @ c:\Users\u0152683\Desktop\Simulations\Plots\plots.jl:14