“zsh:command not found:sails”的问题

时间:2016-01-15 16:25:29

标签: node.js npm sails.js ubuntu-14.04

我通过sudo npm install -g sails安装了sails.js,但我仍然得到zsh: command not found: sails

我正在使用Ubuntu 14.04 LTS。

1 个答案:

答案 0 :(得分:1)

首先找出节点which node的路径将返回/path/bin/node

之类的内容

将该位置输入bin cd /path

通过运行卸载当前节点 rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1

然后您将要通过运行来安装nvm curl https://raw.githubusercontent.com/creationix/nvm/v0.19.0/install.sh | bash然后. ~/.nvm/nvm.shnvm install stable

安装节点npm -g i node

最终全球安装风帆npm -g i sails

你应该很高兴为你建造第一个风帆项目