I have a problem on npm installation
I have created a project say project A
cd ~/projectA
npm install sails
but sails command is not fo
The official instructions for sails (https://github.com/balderdashy/sails) advises
To install the latest stable release with the command-line tool:
sudo npm -g install sails
This installs globally and adds to a directory like /usr/local/bin
that should be in your $PATH
.
But to answer the general question regarding the location of the binaries if you install locally, they should be placed in ./node_modules/.bin
directory (so run ./node_modules/.bin/sails ...
)