Skip to content

Conversation

@shama
Copy link
Member

@shama shama commented Mar 24, 2016

This is a fix as just installing grunt-cli as a dependency doesn't actually create the appropriate binary as reported by @vladikoff.

@vladikoff could you please review? Thanks!

npm i gruntjs/grunt#fix-cli-bin
./node_modules/.bin/grunt

@vladikoff
Copy link
Member

oh neat!

@vladikoff
Copy link
Member

@shama would there be a problem here with npm 2 vs npm 3 because it puts things in random spots?

@shama
Copy link
Member Author

shama commented Mar 24, 2016

@vladikoff I tested with both [email protected] and [email protected]. Both run the grunt binary into the correct spot after install.

I think I had some artifacts left over from previous tests and I was wrong about it installing the bin.

@vladikoff
Copy link
Member

@shama it seems there is a check in npm for this behaviour, npm3 forces the cli into a subdirectory:

@vladikoff vladikoff merged commit 0b6c38f into master Mar 24, 2016
@shama shama deleted the fix-cli-bin branch March 24, 2016 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants