Local Node.js environment
I created a project. I locally installed grunt and grunt-cli. When I open the terminal window, the nodemodules\.bin directory is not in the path, so none of the installed packages' executables are found. Is the only option to install globally? I don't want to have to do that. Especially when I need to use older packages for some reason.
请先登录再写评论。
grunt-cli has to be installed globally - see http://gruntjs.com/using-the-cli.
Works fine for me when I install it locally.
But, more generally, shouldn't node modules bin be added to the session's path for the terminal?
No. But you can add it yourself by modifying your system PATH accordingly