Giter Club home page Giter Club logo

Comments (6)

stevage avatar stevage commented on May 18, 2024 1

Seems that perf_hooks is a built in module in later versions of Node, so I'll see if upgrading works. Which brings me back to my original point :) You should document the minimum required version of Node.

from relaxed.

Zulko avatar Zulko commented on May 18, 2024

In theory in should not be a prerequisite - ReLaXed installs its own Chromium instance via Puppeteer. But in some cases your machine will be lacking some dependencies (which dont prevent ReLaXed installation, but cause problems at run time) so the troubleshooting section suggests asking your system to install chromium as a quick way to get these dependencies.

With which OS did you try and what was the error message ?

from relaxed.

stevage avatar stevage commented on May 18, 2024

OIC. It's OSX. Installing according to all the instructions (including npm install) was fine, but at runtime:

module.js:487
    throw err;
    ^

Error: Cannot find module 'perf_hooks'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/stevebennett/odev/play/relaxed/src/index.js:6:25)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)

from relaxed.

stevage avatar stevage commented on May 18, 2024

Upgrading Node to 10.0.0 did solve the problem and I've now got to "hello world" status.

Couple of other observations:

  • running 'relaxed' with no arguments produces a stack trace TypeError: Cannot read property 'substr' of undefined
  • running relaxed test.pug doesn't produce a pdf until the source file changes.

from relaxed.

Zulko avatar Zulko commented on May 18, 2024

Closing this. If other people use a version of Node that doesnt support async I'll add a line in the README. Too laxy to dissect now but i think node 8 should be a minimum requirement.

from relaxed.

DanielRuf avatar DanielRuf commented on May 18, 2024

Related #30

from relaxed.

Related Issues (20)

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.