Coder Social home page Coder Social logo

Comments (5)

MarshallOfSound avatar MarshallOfSound commented on August 11, 2024

GitHub issues are for feature requests and bug reports, questions about using Electron should be directed to the community or to the Slack Channel.

FWIW this behavior is expected, npm relies on node so it won't work without it

from electron-prebuilt.

uri247 avatar uri247 commented on August 11, 2024

I suspect I'm misunderstood about the essence of this issue. This is not a question or a support issue. It is definitely a feature request, arguably a bug.

  • Node is installed on my machine.
  • On Debian and Ubuntu distribution, the node executable name is nodejs. See issue #4772 on NodeJS database (nodejs/node-v0.x-archive#4772).
  • I had no problem workaround the issue. The canonical work around is to create a symbolic link from node to nodejs - and this way supporting packages that have 'node' hard coded, including electron.
  • I seriously suggest you reopen this issue. Most packages support it. Ubuntu is not a small distribution.

from electron-prebuilt.

MarshallOfSound avatar MarshallOfSound commented on August 11, 2024

@uri247 I'll cc some people on this to discuss but as far as I am aware the nodejs package on linux is legacy and unsupported. The version it installs 0.10 / 0.12 is actually end of life according to node's LTS schedule. And all common node install techniques for linux (that aren't this legacy package) install the correct executable (node).

I am of the opinion that this is an issue with how node was installed in the legacy package and not an issue with electron calling node install.js.

What do you think @malept ?

from electron-prebuilt.

malept avatar malept commented on August 11, 2024

Ubuntu 17.04 installs Node 4.x (has been since at least 16.04). That being said, it's really odd that nodejs-legacy exists (the package that provides the nodejs ➡️ node symlink), from a Node ecosystem point of view. (It makes slightly more sense from a Debian packaging POV...)

My opinion is that we should add to the docs "requires nodejs-legacy installed when using the system Node packages on Debian/Ubuntu."

from electron-prebuilt.

MarshallOfSound avatar MarshallOfSound commented on August 11, 2024

My opinion is that we should add to the docs "requires nodejs-legacy installed when using the system Node packages on Debian/Ubuntu."

Sounds good to me 👍

from electron-prebuilt.

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.