无法使用 npm 在 linux mint 17 中安装 mean-cli

Unable to install mean-cli in linux mint 17 using npm

我已经安装了 npm、nodejs。但是,当我尝试安装 mean-cli(在 linux mint 17 上)时,出现以下错误。从错误来看,mean-cli 的安装脚本似乎正在使用命令 'node' vs 'nodejs'(对于 linux-mint)。我不确定如何让它使用正确的命令。

我在 SO 上搜索了 google 和与 mean.io 相关的帖子,但找不到任何相关信息。感谢任何帮助。

sudo npm install -g mean-cli

> mean-cli@0.10.14 preinstall /usr/local/lib/node_modules/mean-cli
> node ./scripts/preinstall

sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 127
npm ERR! not ok code 0

安装包 nodejs-legacy,它只是 nodejs.

的符号链接