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.

3 comments
Comment actions Permalink

grunt-cli has to be installed globally - see http://gruntjs.com/using-the-cli.

0
Comment actions Permalink

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?

0
Comment actions Permalink

No. But you can add it yourself by modifying your system PATH accordingly

0

Please sign in to leave a comment.