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 found after installation.
I know that it is successfully install in ~/projectA/node_modules
directory.
but the executable cannot be sourced. And i know it is installed ~/projectA/node_modules/.bin
How can I source the .bin automatically whenever I enter into this projectA folder?
Did I did something wrong?
A bit more robust is:
You can either run it, add it to your shell profile, or create an alias like:
If you do go the alias route, be sure to use single quotes so it delays the execution of the variables!