make fails on Linux Mint 18 x64
psteckler opened this issue · comments
I cloned the repo, installed npm
and nodejs
, and ran make
, which failed with:
$ make
npm install
> coz@1.0.0 prepublish /home/steck/coz/viewer
> tsc
/usr/bin/env: ‘node’: No such file or directory
Here's the debug log. Maybe I need newer versions of npm and Node.js?
I think ubuntu/mint renamed this tool from node
to nodejs
. Maybe the most reliable way to fix this issue is to compile the typescript source with tsc
instead of a node-based builder.
I had the same issue on Ubuntu 14.04.
To create symbolic link of 'node' to 'nodejs' can be a temporal fix.
ln -s /usr/bin/nodejs /usr/bin/node
How about adding an ad hoc check for nodejs, failing over to node? Ubuntu is an important platform, so we should support it. (Tagging @ccurtsinger )
One solution is to apt-get install nodejs-legacy
which does the right thing. It's in Debian, Ubuntu, and likely Mint as well.
This package contains a symlink for legacy Node.js code requiring binary to be /usr/bin/node (not /usr/bin/nodejs as provided in Debian).
Sounds great. I would be happy to merge a PR.
It seems that ubuntu now creates both node
and nodejs
executables transparently now, so this should no longer be an issue.