我在安装 Node 和 Coffeescript 时遇到了一些困难。我已经使用自制软件安装了节点,然后我已经成功安装了 NPM。我试图从 NPM 安装 Coffeescript,它似乎已经工作了,但是我无法运行咖啡
localserver:Documents x$ sudo npm -g install coffee-script
Password:
npm http GET https://registry.npmjs.org/coffee-script
npm http 304 https://registry.npmjs.org/coffee-script
/usr/local/share/npm/bin/coffee -> /usr/local/share/npm/lib/node_modules/coffee-script/bin/coffee
/usr/local/share/npm/bin/cake -> /usr/local/share/npm/lib/node_modules/coffee-script/bin/cake
coffee-script@1.4.0 /usr/local/share/npm/lib/node_modules/coffee-script
localserver:Documents x$ coffee
-bash: coffee: command not found
localserver:Documents x$
我需要为此设置一些路径环境变量吗?即使我导航到/usr/local/share/npm/lib/node_modules/coffee-script/bin/coffee
我也无法从这里运行它。