Giter Club home page Giter Club logo

Comments (2)

paulbkoch avatar paulbkoch commented on May 23, 2024

Hi @DerWeh -- Thanks for letting us know about this. I'll add the information to install npm in the documentation once we resolve the rest of the issues you're observing.

node v8.10.0 and npm v3.5.2 are pretty old (2018/2015). Can you try updating them with:

sudo apt update
sudo apt install nodejs npm

from interpret.

DerWeh avatar DerWeh commented on May 23, 2024

Indeed, the Ubuntu on my machine is quite old (and I have some constrains not allowing me to upgrade).

Tried it on a different machine with a newer Ubuntu.

$ nodejs --version
v12.22.9
$ npm --version
8.5.1

With the newer version, the command runs with the following output:

$ make install
cd /home/wehandre/workspace/code/interpret/shared/vis && npm install
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: Redundant dependency in your project.
npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

added 1127 packages, and audited 1128 packages in 2m

150 packages are looking for funding
  run `npm fund` for details

4 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
cd /home/wehandre/workspace/code/interpret/shared/vis && npm run build-prod

> @interpretml/[email protected] build-prod
> webpack --mode production

events.js:291
      throw er; // Unhandled 'error' event
      ^

Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
    at Worker.[kOnExit] (internal/worker.js:238:26)
    at Worker.<computed>.onexit (internal/worker.js:168:20)
Emitted 'error' event on Worker instance at:
    at Worker.[kOnExit] (internal/worker.js:238:12)
    at Worker.<computed>.onexit (internal/worker.js:168:20) {
  code: 'ERR_WORKER_OUT_OF_MEMORY'
}
make: *** [Makefile:86: build-javascript] Error 1

I'm not really interested in developing dashboards and visualizations, so it seems it's fine to just use

$ chmod u+x build.sh
$ ./build.sh

followed by installing the Python module. The relevant test are passing, so this is good enough for me (but it might be useful to document it for other developers).

from interpret.

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.