Problems with “zsh: command not found: sails”

Posted on

Problems with “zsh: command not found: sails”

I installed sails.js with via sudo npm install -g sails but i’m still getting zsh: command not found: sails

I’m using Ubuntu 14.04 LTS.

Solution :

First find out path for node which node will return something like /path/bin/node

enter that location to bin cd /path

uninstall present node by running
rm -r bin/node bin/node-waf include/node lib/node lib/pkgconfig/nodejs.pc share/man/man1/node.1

then you’ll want to install nvm by running
curl https://raw.githubusercontent.com/creationix/nvm/v0.19.0/install.sh | bash then . ~/.nvm/nvm.sh and nvm install stable

install node npm -g i node

finally install sails globally npm -g i sails

you should be good to build you first sails project

Leave a Reply

Your email address will not be published. Required fields are marked *