NPM : how to source ./node_modules/.bin folder?
问题 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? 回答1: I can give you an inelegant solution, which is