D
D
Dobby Free2016-12-05 13:14:56
JavaScript
Dobby Free, 2016-12-05 13:14:56

Why does the installation fail?

When installing Electron on Ubuntu, the following errors occur:

npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "electron"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: `node install.js`

Why is this happening?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2016-12-05
@AppFA

MB The version of the node you have is not the same? Try to install NVM and install node 6.5+

K
Konstantin Kitmanov, 2016-12-05
@k12th

Perhaps the node -> nodejs symlink is missing. Tip: install the latest version from here: https://github.com/nodesource/distributions. Well, or through NVM, yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question