Comments (4)
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.
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.
@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.
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)
- OpenBSD as a supportet platform? HOT 2
- Unable to install Electron with the quick-start tutorial HOT 7
- "sudo npm install -g electron" fails HOT 1
- Electron not installing (Windows 10) HOT 2
- Got stuck after npm install -g HOT 1
- Error while installing npm in windows 10 HOT 1
- Mac: Failed at the [email protected] postinstall script 'node install.js'. HOT 4
- npm install hangs HOT 3
- Dependency to @types/node makes electron package incompatible with typescript projects not using commonjs HOT 11
- Can't install electron 1.7.1 locally using npm 5 HOT 10
- Install on Bash on Ubuntu on Windows (WSL) HOT 13
- Postinstall script failing HOT 22
- Error: Generated checksum for "electron-v1.4.13-linux-x64.zip" did not match expected checksum. HOT 11
- Prebuilt electron package for Ubuntu 10.04 32 bits HOT 1
- node (vs. nodejs) is required when installing electron HOT 5
- Can't install in Windows10 HOT 1
- Change electron binary path via environment variable? HOT 2
- Electron not installing on Mac Os High Sierra HOT 1
- npm ERR! [email protected] postinstall
- Error while installing electron on Mac
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-prebuilt.