# Plotly(JS) fails due to ORCA

**URL:** <https://discourse.julialang.org/t/plotly-js-fails-due-to-orca/45090>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [August 17, 2020, 9:11am UTC](https://discourse.julialang.org/t/plotly-js-fails-due-to-orca/45090 "2020-08-17T09:11:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![omrilesser](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/omrilesser/32/17265_2.png) [@omrilesser](https://discourse.julialang.org/u/omrilesser)\
**Post date:** [August 17, 2020, 9:11am UTC](https://discourse.julialang.org/t/plotly-js-fails-due-to-orca/45090/1 "2020-08-17T09:11:33Z")

</div>

I’m trying to use Plots.jl with PlotlyJS for simple plotting, for example:

```julia
using Plots
plotlyjs()
x = range(0,stop=1,length=100)
y = x.^2
Plots.plot(x,y, legend=false, linecolor="red")

```

This fails in the ORCA precompilation stage:

```julia
ERROR: LoadError: ORCA not installed properly. Please call `Pkg.build("ORCA")`

```

So I tried the above command and it fails:

```julia
julia> Pkg.build("ORCA")
   Building ORCA → `C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.log`
┌ Error: Error building `ORCA`:
│ internal/modules/cjs/loader.js:800
│ throw err;
│ ^
│ 
│ Error: Cannot find module './internal/streams/stream'
│ Require stack:
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-stream.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-group.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\index.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\npmlog\log.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\bin\npm-cli.js
│ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
│ at Function.Module._load (internal/modules/cjs/loader.js:690:27)
│ at Module.require (internal/modules/cjs/loader.js:852:19)
│ at require (internal/modules/cjs/helpers.js:74:18)
│ at Object.<anonymous> (C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js:50:14)
│ at Module._compile (internal/modules/cjs/loader.js:959:30)
│ at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
│ at Module.load (internal/modules/cjs/loader.js:815:32)
│ at Function.Module._load (internal/modules/cjs/loader.js:727:14)
│ at Module.require (internal/modules/cjs/loader.js:852:19) {
│ code: 'MODULE_NOT_FOUND',
│ requireStack: [
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\lib\\_stream_readable.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\readable.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-stream.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-group.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\index.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\npmlog\\log.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\bin\\npm-cli.js'
│ ]
│ }
│ internal/modules/cjs/loader.js:800
│ throw err;
│ ^
│ 
│ Error: Cannot find module './internal/streams/stream'
│ Require stack:
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\readable.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-stream.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\tracker-group.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\index.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\npmlog\log.js
│ - C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\bin\npm-cli.js
│ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:797:15)
│ at Function.Module._load (internal/modules/cjs/loader.js:690:27)
│ at Module.require (internal/modules/cjs/loader.js:852:19)
│ at require (internal/modules/cjs/helpers.js:74:18)
│ at Object.<anonymous> (C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node_modules\npm\node_modules\are-we-there-yet\node_modules\readable-stream\lib\_stream_readable.js:50:14)
│ at Module._compile (internal/modules/cjs/loader.js:959:30)
│ at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
│ at Module.load (internal/modules/cjs/loader.js:815:32)
│ at Function.Module._load (internal/modules/cjs/loader.js:727:14)
│ at Module.require (internal/modules/cjs/loader.js:852:19) {
│ code: 'MODULE_NOT_FOUND',
│ requireStack: [
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\lib\\_stream_readable.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\node_modules\\readable-stream\\readable.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-stream.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\tracker-group.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\are-we-there-yet\\index.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\node_modules\\npmlog\\log.js',
│ 'C:\\Users\\omrile\\.julia\\artifacts\\345df2b824d1eacefab89d560a9e929ff24c0537\\node_modules\\npm\\bin\\npm-cli.js'
│ ]
│ }
│ ERROR: LoadError: failed process: Process(`'C:\Users\omrile\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\npm.cmd' config set scripts-prepend-node-path true`, ProcessExited(1)) [1]
│ 
│ Stacktrace:
│ [1] pipeline_error at .\process.jl:525 [inlined]
│ [2] run(::Cmd; wait::Bool) at .\process.jl:440
│ [3] run at .\process.jl:438 [inlined]
│ [4] main() at C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.jl:4
│ [5] top-level scope at C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.jl:30
│ [6] include(::String) at .\client.jl:457
│ [7] top-level scope at none:5
│ in expression starting at C:\Users\omrile\.julia\packages\ORCA\jdK40\deps\build.jl:30
└ @ Pkg.Operations D:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.5\Pkg\src\Operations.jl:942

```

I’m using Julia Pro 1.5.0-1 on Windows 10.

Thanks!

---

<div class="post-metadata">

**Author:** ![sglyon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sglyon/32/67_2.png) [@sglyon](https://discourse.julialang.org/u/sglyon)\
**Post date:** [August 26, 2020, 1:41pm UTC](https://discourse.julialang.org/t/plotly-js-fails-due-to-orca/45090/2 "2020-08-26T13:41:29Z")

</div>

Due to the problems with ORCA.jl, we have decided to go another direction. The savefig functionality offered by ORCA.jl has been implemented by new routines built in to PlotlyBase.jl (and thus PlotlyJS.jl) itself.

ORCA.jl is now deprecated and should not be used going forward.

Thank you
