Coder Social home page Coder Social logo

Comments (4)

maxrimue avatar maxrimue commented on August 11, 2024

As it says node: not found, we can expect your system to not be affected by problems in case Node.js uses the command node, so, as a temporary solution, you could create an alias like this:

alias node='nodejs'

The alias will only be valid during that terminal session which means you're safe in case you'll ever have another program using node as its command. After setting the alias, install again, it should work after that without using an alias.

from electron-prebuilt.

TomWor avatar TomWor commented on August 11, 2024

The alias doesn't work. It seems the npm process spawns another process where the alias is not recognized?
Another thing that caught my eye: the node_modules folder is empty after the error.
If the post install script doesn't run, does the whole package get removed again?
Shouldn't it be in there?

That being said, of course this will fix the error:
sudo ln -s /usr/bin/nodejs /usr/bin/node
But you gotta keep an eye out for this conflict, but I don't think I need the other package that brings a node binary.

from electron-prebuilt.

maxrimue avatar maxrimue commented on August 11, 2024

@TomWor Yeah, it's possible that npm spawns a process that is not affected by this way of aliasing. It could also be that npm deletes the dependency folder in node_modules/ if installation has failed, probably because you can't just resume the installation process if it has failed at some point, so it rather asks you to download it again (if not cached) and start the installation again from zero.

It's also possible that not every Debian user will even install the ax25-node package (or others using the node command), to be honest, node is a really bad name for a command since it's just as descriptive as webbrowser or something like that, maybe it'll even be changed in the future as Node.js is getting more popular everyday. On packages.debian.org, it is described like this:

The ax25-node program accepts TCP/IP and packet radio network connections and presents users with an interface that allows them to make gateway connections to remote hosts using a variety of amateur radio protocols.

Another way for making the alias available globally is to create the alias in your .bashrc file, but you can of course also use sudo ln -s.

from electron-prebuilt.

ungoldman avatar ungoldman commented on August 11, 2024

I recommend trying out https://packages.debian.org/sid/nodejs-legacy, that seems to have worked for others having issues installing on different linux distros.

sudo apt-get install nodejs-legacy

See #27 (comment) for an example that resolved a similar issue. Marking this as resolved as it sounds like nodejs-legacy was made to deal with this issue.

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.