coffeescript fails to find nodejs in path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coffeescript (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: coffeescript
After installing coffeescript and nodejs, running "coffee" should present a REPL prompt. However:
$ coffee
/usr/bin/env: nodejs: No such file or directory
This appears to be because coffeescript is expecting "nodejs" in the path, but the executable provided by the current nodejs package is "node." This makes coffeescript unusable out of the box, although there *is* a workaround.
Assuming ~/bin is in the user's path, creating a symlink there will enable the user launch an interactive prompt properly.
$ cd ~/bin; ln -s /usr/bin/node nodejs
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: coffeescript 0.7.0-1
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Wed May 4 20:26:09 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110330)
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: coffeescript
UpgradeStatus: No upgrade log present (probably fresh install)
WORKAROUND: install "nodejs-legacy" package.
Changed in coffeescript (Ubuntu): | |
status: | New → Confirmed |
I was also able to workaround with a link in /usr/bin:
sudo ln -s /usr/bin/node /usr/bin/nodejs
This creates the link globally, which may be the source for other grief later on. But it lets coffee work.