timbertson / slinger

gnome-shell extension for throwing windows around efficiently
135 stars 11 forks source link

Failed on compilation #4

Closed adg-adg closed 6 years ago

adg-adg commented 6 years ago

Using Debian Testing(Buster) with node-typescript 2.7.0-1

After cloning the git repo and executing tools/gup compile in the top of git directory I get such output upon failure:

gup   compile
gup    schemas/all
gup      schemas/gschemas.compiled
+ mkdir -p compiled
+ gup -u inputs
gup        schemas/inputs
+ glib-compile-schemas . --targetdir=compiled
+ mv compiled/gschemas.compiled /home/axg/git/slinger/schemas/.gup/out.gschemas.compiled
+ rm -rf compiled
gup    extension/all
gup      extension/extension_impl.js
/usr/bin/env: ‘node’: No such file or directory
gup      Target `extension/extension_impl.js` failed with exit status 127
gup    Target `extension/all` failed with exit status 2
gup  Target `compile` failed with exit status 2

Not sure where to go from here, It seems like it should be something simple but having no prior experience with node or typescript, I don't want to mess around too much. Thank you for the extension regardless!

adg-adg commented 6 years ago

Looked into this a bit closer and figured it out by using this suggestion: https://github.com/animetosho/Nyuu/issues/14

Fixed by: ln -s /usr/bin/nodejs /usr/bin/node
The more Debian/Ubuntu way to do it is apt-get install nodejs-legacy, though it ultimately does the same thing.
Alternatively, you can edit the first line of the bin/nyuu.js file to use nodejs instead of node. :)

therefore I just installed node-legacy and everything worked.