Git Product home page Git Product logo

Comments (3)

akielbowicz avatar akielbowicz commented on September 20, 2024

Installing node seems to fix the error, but its not a solution.

I downloaded a copy of the repo and changed the reference to the one of NodeJS package and now I got this error:

julia> import PlutoExport
julia> PlutoExport.pdf("..\notebooks\\test_slider.jl")
┌ Info: No output path provided. Defaulting to ..
└ otebooks\test_slider.pdf
internal/modules/cjs/loader.js:800
    throw err;
    ^

Error: Cannot find module 'puppeteer'
Require stack:
- C:\Users\pc\Documents\Code\testing_pluto\PlutoExport.jl\node\export.js
- C:\Users\pc\Documents\Code\testing_pluto\PlutoExport.jl\node\bin.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\pc\Documents\Code\testing_pluto\PlutoExport.jl\node\export.js:1:11)
    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\\pc\\Documents\\Code\\testing_pluto\\PlutoExport.jl\\node\\export.js',
    'C:\\Users\\pc\\Documents\\Code\\testing_pluto\\PlutoExport.jl\\node\\bin.js'
  ]
}
ERROR: failed process: Process(`'C:\Users\pc\.julia\artifacts\345df2b824d1eacefab89d560a9e929ff24c0537\node.exe' 'C:\Users\pc\Documents\Code\testing_pluto\PlutoExport.jl\node\bin.js' 'C:\Users\pc\Documents\Code\testing_pluto\PlutoExport.jl\..
otebooks\test_slider.jl' 'C:\Users\pc\Documents\Code\testing_pluto\PlutoExport.jl\..
otebooks\test_slider.pdf'`, 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] pdf(::String, ::Nothing; console_output::Bool) at C:\Users\pc\Documents\Code\testing_pluto\PlutoExport.jl\src\PlutoExport.jl:39
 [5] pdf at C:\Users\pc\Documents\Code\testing_pluto\PlutoExport.jl\src\PlutoExport.jl:25 [inlined] (repeats 2 times)
 [6] top-level scope at REPL[3]:1

Hope this info saves you some time. Node is way out of my knowledge and pay grade :P

from plutopdf.jl.

fonsp avatar fonsp commented on September 20, 2024

@akielbowicz Can you try again with the latest version?

from plutopdf.jl.

fonsp avatar fonsp commented on September 20, 2024

Fixed now

from plutopdf.jl.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.